#26367: Assess if FieldFile can work with stdlib File instead of requiring
Django's
File
--------------------------------------+------------------------------------
Reporter: cristianocca | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: File uploads/storage | Version: 1.9
Severity: Normal | Resolution:
Keywords: file storage | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by cristianocca):
Would it be as easy as wrap it in the save method of FieldFile? Note that
the storage would still be required to return a File object on retrieval.
That simple change would remove the need of importing File (which is
already hard to find!) and wraping every file in File when saving a
FileField or ImageField.
--
Ticket URL: <https://code.djangoproject.com/ticket/26367#comment:7>
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/070.9698107a98045776453b310a3efc6922%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.