#26563: Overwriting files with default_storage.save()
------------------------------+--------------------
Reporter: MikiSoft | Owner: nobody
Type: New feature | Status: new
Component: Core (Other) | Version: 1.9
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/26563>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.480d94585d793c64dfc0b133648015bd%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.