onespacemedia / cms

A collection of Django extensions that add content-management facilities to Django projects.
BSD 3-Clause "New" or "Revised" License
14 stars 7 forks source link

Add the ability to overwrite existing files in the media library #189

Open lewiscollard opened 4 years ago

lewiscollard commented 4 years ago

Right now, uploading a file to overwrite an existing one will use the standard Django behaviour of keeping the old file in place, and adding characters to the end of the new file if the file names match. This is sensible behaviour; in particular, it enables easy versioning.

Oft-requested, though, is the ability to overwrite an existing file so that the URL does not change. I think there are other ways of doing the same thing, but better (using the permalinks system, using redirect shortlinks, etc) that do not break the ability to undo via reversion. Still, that gets requested, and I don't see that it's a bad idea all of the time.

Some things to consider in the solution: