Opened 8 years ago

Closed 8 years ago

#26563 closed New feature (duplicate)

Overwriting files with default_storage.save()

Reported by: MikiSoft Owned by: nobody
Component: Core (Other) Version: 1.9
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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.

Change History (1)

comment:1 by Aymeric Augustin, 8 years ago

Resolution: duplicate
Status: newclosed

I believe this question is adequately covered by #26562, where possible implementations are being discussed.

Note: See TracTickets for help on using tickets.
Back to Top