#12955: Large file (bigger than 2GB) upload
-------------------------------------------+--------------------------------
Reporter: iscarface | Owner: nobody
Status: new | Milestone:
Component: File uploads/storage | Version: 1.1
Resolution: | Keywords:
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Comment (by isagalaev):
The problem is caused by using {{{len(self.file)}}} because len() tries to
typecast the result of {{__len__()}} to an actual int. Which on 32-bit
machines is < 2G. I think the fix might be as simple as using directly
{{.size}} instead of {{len()}} everywhere...
--
Ticket URL: <http://code.djangoproject.com/ticket/12955#comment:3>
Django <http://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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.