Media Replacement

Hi,

When replacing a media with a different version of the same media, uploading the new version to the server creates a second entry in the WP Media Library, for instance:

  • Original media name: my-image.jpg
  • Replacing media name once uploaded: my-image-1.jpg

I would expect the replacing media to override the original one, with the same file name, as does the Enable Media Replace plugin.
Instead of having to cleanup the Media Library after the replacement, and getting a numbered file name.

Hey @avanti ,
I’d already used the media replacement function, but had to rollback due to some png losing transparency. I didn’t pay attention to the image names, but if I understand correctly, all the images get renamed with a -1?
If that’s so, it could be problematic indeed, and I support your request for media to have the exact same name with a different file type name.
@joy , can you confirm that image will get renamed that way? Can it be prevented by not chosing to keep the original files?

2 Likes

Hi @Adrien, yes we will keep that as default. Image replacement with no suffix coming up in the next update.

These improvements have been added and will be released in the upcoming v1.1.5 release.

1 Like