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:
Jacob Kaplan-Moss 2009-05-11 10:13:43 +00:00
parent baaf29895c
commit 772f68c20e
1 changed files with 1 additions and 0 deletions

1
django/core/files/uploadhandler.py Normal file → Executable file
View File

@ -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,