#18520: forms.ImageField loads entire file into memory, crashes server
---------------------------------+-------------------------------------
Reporter: gregplaysguitar | Owner: aaugustin
Type: Bug | Status: closed
Component: Forms | Version: 1.4
Severity: Normal | Resolution: fixed
Keywords: | 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):
This is 4 years old, but there might be still an issue:
https://github.com/django/django/blob/master/django/forms/fields.py#L627
If you read that line and below it still loads everything in memory with
BytesIO. Have you thought of using something like a SpooledTemporaryFile ?
--
Ticket URL: <https://code.djangoproject.com/ticket/18520#comment:3>
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/073.2e453febca3879a03f45a5a7e89494a0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.