What is the right way to update a media file

Topics: General
Jul 22, 2011 at 7:59 PM

Suppose an image file foo.png has been inserted to a page, and now foo.png has an updated version.  It seems that one cannot delete the image on the page and upload foo.png again because it would generate "ERROR: Uploading media file failed: File foo.png already exists".  One would have to either rename the file and leave the obsoleted foo.png, or delete the file in directory C:\...\Media\Default\...\foo.png before uploading the file again.  The later method is not available for every user.  Is there a better way to do this/

Jul 26, 2011 at 12:55 AM

Yeah, unfortunately that's how it is currently. I don't like it either. Please file a bug.

Jul 27, 2011 at 4:40 PM

Thanks for the clarification. Did you mean Issue Tracker by "file a bug"?

Jul 27, 2011 at 9:16 PM


Jul 28, 2011 at 11:56 AM

This is a limitation in the FileSystemStorageProvider, which explicitly checks for the existence of the file before writing it. In the mean time, you could go to "Media" in the dashboard's menu and delete the file (so you don't need to access the disk).

Marked as answer by zipswich on 10/23/2013 at 11:33 AM
Jul 28, 2011 at 2:18 PM

Thanks a lot for pointing out that media files can be accessed through the dashboard.