WordPress.org

Ready to get started?Download WordPress

Forums

Media Rename
[resolved] Old media files are not being deleted (2 posts)

  1. GermanKiwi
    Member
    Posted 1 year ago #

    Hi, I've just installed this plugin and tested it out. It seems to work fine in terms of creating new files for the image and its thumbnails. However, I found that it doesn't delete the old files from the server - they are left there with their original filenames, cluttering up the upload folder.

    Example:

    I uploaded an image called test.jpg using the "Add New" page of the Media Library. Using my FTP client, I can see the following files on the server, as a result:

    test.jpg
    test-150x115.jpg
    test-300x200.jpg
    test-300x231.jpg
    test-624x480.jpg
    test-75x75.jpg
    test-937x350.jpg

    Then I used your plugin to rename this file. I did this by going into the "Edit Media" page of the image itself, and I changed its name to "test2.jpg" and clicked Update.

    The image did get renamed, and everything looks correct in the Media Library. But in my FTP client I can now see the following files in the upload directory:

    test.jpg
    test-150x115.jpg
    test-300x200.jpg
    test-300x231.jpg
    test-624x480.jpg
    test-75x75.jpg
    test-937x350.jpg
    test2.jpg
    test2-150x115.jpg
    test2-300x200.jpg
    test2-300x231.jpg
    test2-624x480.jpg
    test2-75x75.jpg
    test2-937x350.jpg

    So now I've got all the new ones, with the new name, as well as all the original ones still! The only file that seems to have been removed is "test.jpg" itself (the original master image), which is no longer there.

    Any idea what is causing this?

    http://wordpress.org/extend/plugins/media-rename/

  2. ShadowsDweller
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for reporting this! I will fix it as soon as I can.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.