• image not Remove in
    when removing media library
    will be possible to remove in future releases?

    —————————————
    and no work filter directory

    remove in media library – yes
    remove image in path directory – no 🙁
    reupload image – FAIL: move will overwrite an existing file 🙁 ( maybe function rename ? or button overwrite

    https://wordpress.org/plugins/relocate-upload/

Viewing 6 replies - 1 through 6 (of 6 total)
  • This is happening where the plugin has the code for if(file_exists($new_path))

    I think the developer may have to perform an action such as this:

    if(file_exists($new)) {
    unlink($new);
    $ok = rename($old, $new);
    } else { $ok = rename($old, $new); }

    Or create a function like this:

    function rename_win($oldfile,$newfile) {
    if (!rename($oldfile,$newfile)) {
    if (copy ($oldfile,$newfile)) {
    unlink($oldfile);
    return TRUE;
    }
    return FALSE;
    }
    return TRUE;
    }

    I referenced this: http://us2.php.net/rename

    Developer, can you implement something like this so that we can overwrite a file? Even if we “permanently delete the file” it actually doesn’t delete it in the relocated directory, so this would be helpful.

    Plugin Author Tim Berneman

    (@tberneman)

    These issues are fixed in the current version that I am working on. I’m changing how the paths are determined and stored in the database. Because of this, I need to do some extensive testing first. I hope to release it soon.

    I have problems as mentioned above.

    When will you release a new version?

    The plugin has some great potential 🙂

    Plugin Author Tim Berneman

    (@tberneman)

    I will try to look at this in the next several days. I want to get these issues fixed and more testing on WordPress 4.0 before releasing it.

    I am sure not only me would greatly appreciate this 🙂
    I am looking forward for fixes 🙂

    Was this fixed?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘not Remove image in path directory’ is closed to new replies.