WordPress Plugin Rename Media Files Renames Media Files

It’s surprising but true. You can’t edit the file names of uploaded media from within WordPress. The only way to do so is to delete file by file and reupload them again after names were changed locally. Today, we’ll change that.

When the Name Doesn’t Fit: Rename Media Files

Let’s not fool ourselves. This happens very quickly in our hectic daily routine. The image that you just downloaded from Pixabay is now being uploaded into your WordPress with its original name. Or you made a mistake with a screenshot you just took, and now it’s not called screenshot.jpg but screenshit.jpg instead. This is almost a bit embarrassing.

Aside from the embarrassment, the image-related SEO is not to be neglected either. After all, you should include the chosen keyword in your file names to increase your chances of a better ranking. The right file name for your image is no accessory, but an essential part of the work on your website.

WordPress is not very flexible in this regard. It does not allow you to access your file names once the element has been uploaded. All there’s left to do is to delete the file, alter it locally, and reupload the modified version. At first, this seems doable.

But what if you’re responsible for the publishing in a multi-author blog, and you don’t even have access to the original files? Sure, with a bit of effort, this can be changed, but wouldn’t it be better if you could just modify the file name from within the Media Library?

Rename Media Files Takes Care of Links and Intermediate Sizes

Alright, I can already hear your outcry. “What about the links to the images? All of them will be wrong!” Yes, this is a problem. But the Serbian developer Milan Dinic has already taken care of it during the creation of his free plugin “Rename Media Files.”

The mechanics of the plugin are as easy as it gets because Milan has decided to simply add another field to the file detail view, which he labeled “New Filename.” Here, he also informs you about the current file name of the chosen image, to prevent you from renaming images that you’ve renamed already.

Rename Media Files Only Adds a Small Unremarkable Field. (Screenshot: Noupe Magazine

If the element you want to rename is an image, it won’t just receive a new name. All required intermediate sizes are also newly generated reflecting the changed name. The plugin also alters the link to the file in all posts that have the element integrated.

This removes the risk of forgetting or overlooking anything. Your files remain completely intact, even in older posts. While it’s not typical to rename images that were already used in older posts, it is still possible with “Rename Media Files.”

It is more common that you need to rename something during the completion of a post. Everything is basically done, but then you notice the typo in the file name. Or you notice that the chosen keyword is not the optimal one after all. Fortunately, you won’t have to newly upload and integrate all images. Instead, you only change the names.

Conclusion and Download

“Rename Media Files” is a very focused WordPress plugin with one single job. But it does that job perfectly. For me, this small tool is indispensable.

Rename Media Files
Developer: Milan Dinić
Price: Free

Dieter Petereit

Dieter Petereit is a veteran of the web with over 25 years of experience in the world of IT. As soon as Netscape became available he started to do what already at that time was called web design and has carried on ever since. Two decades ago he started writing for several online publications, some well, some lesser known. You can meet him over on Google+.

Leave a Reply

2 Comments on "WordPress Plugin Rename Media Files Renames Media Files"

Notify of
avatar
Sort by:   newest | oldest | most voted
yuda
Guest
A plugin that renames media files is indeed a great solution for the problems you’ve raised, but it’s important to note that the plugin does *not* rename the media files, but rather regenerates them with the new name. This is problematic in several levels, as this comment from the plugin page states: “This plug-in does NOT what its name indicates: It does not rename a media file, it simply creates a copy under a new name. This is not what you expect, and it has some disadvantages. First: You waste disk space. Second: You create a mess, because there are… Read more »
Roy Solo
Guest

This is a really useful plugin. I is very helpful when the file names are like 23876Wn6Ybk.jpeg Than this Plugin can save a lot of time and effort. Thanks for sharing this awesome plugin.

wpDiscuz