Opened 9 years ago
Closed 9 years ago
#26563 closed New feature (duplicate)
Overwriting files with default_storage.save()
Description ¶
I'm using django.core.files.storage.default_storage
function for saving files, but I don't see an option where I would specify that existing ones have to be overwritten. For now I have to write my own function for checking if file exists, and if it does to delete it before saving. I propose in the next version that I could specify the parameter for overwriting files so that can be done easily i.e. in one line.
Note:
See TracTickets
for help on using tickets.
I believe this question is adequately covered by #26562, where possible implementations are being discussed.