#9591: MemoryFileUploadHandler doesn't rewind InMemoryUploadedFile to the
beginning
---------------------------+------------------------------------------------
 Reporter:  isagalaev      |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Uncategorized  |     Version:  1.0       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 MemoryFileUploadHandler creates an InMemoryUploadedFile and passes it to
 storage.save without doing seek(0) beforehand. This contradicts the
 docstring of storage.save that says "The content should be a proper File
 object, ready to be read from the beginning."

 Patch follows.

 P.S. Uploaded files are saved correctly though with the standard
 FileSystemStorage because it uses .chunks() method of a File object that
 incidentally does seek(0) before read().

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9591>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to