Fixed #11055: fixed a regression in [10717] that caused uploaded files to have incorrectly set file pointers. They're now, as before, reset to the beginning upon successful upload.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10739 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
baaf29895c
commit
772f68c20e
|
@ -180,6 +180,7 @@ class MemoryFileUploadHandler(FileUploadHandler):
|
|||
if not self.activated:
|
||||
return
|
||||
|
||||
self.file.seek(0)
|
||||
return InMemoryUploadedFile(
|
||||
file = self.file,
|
||||
field_name = self.field_name,
|
||||
|
|
Loading…
Reference in New Issue