Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I was really excited to see the new functionality with the media manager in WP 3.3 (specifically drag and drop uploads and automatic file type recognition)

But I was disheartened to see no relief in terms of the confusing manner in which WP continues to handle image overwrites (by appending a number to the image and creating a duplicate version).

Does anyone have a workaround that I can implement in my theme's functions.php to enable automatic image overwrites, replacing the original image with the new one, and without changing the filename?

share|improve this question
    
How do you define duplicate image? –  Sisir Dec 22 '11 at 19:54
    
An image that resides on your server in the same directory and with the same filename as the one you are trying to upload. –  Scott B Dec 22 '11 at 23:22
    
possible duplicate of How to force Media manager to overwrite files of same name? –  Chip Bennett Jan 25 '12 at 20:11
add comment

2 Answers

up vote 4 down vote accepted

There's another plugin out there worth checking out:

Enable Media Replace
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!

share|improve this answer
add comment

Some searching revealed a plugin that seems to work, Overwrite Uploads. However, this requires a small change to the wp core, which isn't great. So far I haven't found any way around this.

On a sidenote, I've used WPlupload to replace the built in uploader. I like how it lets me set a max upload file size and resolution. not sure if it helps with your problem but might be useful to check out.

By the way, this has been asked a few times before with the same suggestion.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.