How to update a media file in WordPress


If you’ve got documents, like a PDF or Word document on your WordPress website, at some point you may wish to update the document with a new version.

If you’re just looking to insert a new file on a page or post, check out this guide instead.

However, when you go to upload the new document, you’ll find that you are creating a whole new document in the media library, leaving the old one in place, meaning you then need to find all links pointing to the old document and update them with the new link! So how do we solve this?

Enter: the “Enable Media Replace” plugin.

Install the WordPress plugin, then head to “Media” in WordPress and search for your existing document in the library. Once found, click on it, and on the right side look for the “Replace” button and click that.

You will now be presented with the option to upload your replacement document. Once you’ve uploaded your document, you’ll find that the old document has been removed, and the new one put in its place with the same filename as before. This means all of your links to the old document will now automatically link to the new one.


Jordan Schelew

Jordan has been working with computers, security, and network systems since the 90s and is a managing partner at Websavers Inc. As a founder of the company, he's been in the web tech space for over 15 years.

About Websavers

Websavers provides web services like Canadian WordPress Hosting and VPS Hosting to customers all over the globe, from hometown Halifax, CA to Auckland, NZ.

If this article helped you, our web services surely will as well! We might just be the perfect fit for you.

Leave a Comment