Easily Replace An Old Media File To A New Media File In WordPress

Have you come across times where you need to delete an image file in WordPress or any other file and re-upload a new file due to the similarity of the file name or simply because the file needs to be updated? Well, if you do, then you should know that it’s quite a tedious task.

As a result of the tedious task above, there is a WordPress plugin that was developed by ShortPixel that allows you to easily replace an old media file with a new media file and at the same time remaining the file name. And you can do it with just a few clicks of a button.

That plugin is called the Enable Media Replace or also known as EMR.

The following is a tutorial on how to set the plugin up with your WordPress website.

Install and activate the Enable Media Replace plugin

If you are facing difficulties in installing a WordPress plugin, see our tutorial here – How to install a WordPress plugin

Once you have successfully activated the plugin, hover your cursor on Media and click on Library

Next, click on any of the file which you would like to replace. By doing so, an overlay will appear that contains the attachment details. Here’s an example:

Here, click on the button that says Upload a new file under the Replace media section.

You will then be redirected to another page whereby you are able to select the option of either to replace the file and remaining the file name or replace the file and also replace the name of the file and update all links that are currently pointing to the old file to the new file.

In this case, since you only want to replace the file and at the same time remain the file name, simply click Choose File and upload the replacement.

Note: Once you replaced the file, you will not be able to retrieve the old file back. 

Then, select the Just replace the file option and followed by clicking Upload.

That’s it! You have successfully replaced the file.