Every now and then I mistakenly hit upload on the wrong image whilst crafting a post. Annoyingly, I then have to upload the correct version of the image, which automatically gets assigned a new identifier instead of giving me the option of just simply replacing the file I just mistakenly uploaded.
WordPress doesn’t have a native way of doing this, but that of course then opens the door for the rest of us developers, and so Mans Jonasson stepped up and crafted the nifty Enable Media Replace WordPress plugin.
As the description says, “This plugin allows you to replace a file in your media library by uploading a new file in its place. No more deleting, renaming and re-uploading files!”
It has two replace options, namely: