#35619: django.core.files.uploadfile.InMemoryUploadedFile ignores chunk_size
-------------------------------------+-------------------------------------
Reporter: XU GUI PING | Owner: (none)
Type: Bug | Status: closed
Component: File | Version: 5.0
uploads/storage |
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by XU GUI PING):
I have now solved my problem by setting FILE_UPLOAD_MAX_MEMORY_SIZE. The
problem occurred because my operating system does not support writing more
than 60000+ bytes at a time, but the default FILE_UPLOAD_MAX_MEMORY_SIZE
of Django is 2.5M, which is far beyond the range supported by my operating
system. I think it is feasible for Django to set such a default value, but
in my scenario, this does bring bugs. The benefits that
MemoryFileUploadHandler brings to us are obvious, but it is not robust
enough for my problem.
--
Ticket URL: <https://code.djangoproject.com/ticket/35619#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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070190caf1089a-83f9458f-bcfa-4be7-8d62-4d80f67e4506-000000%40eu-central-1.amazonses.com.