summaryrefslogtreecommitdiff
path: root/django/core/files/uploadhandler.py
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2009-05-11 10:13:43 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2009-05-11 10:13:43 +0000
commit772f68c20e8de89a6b029a0ff498f6120912af07 (patch)
treecbe82eaf8568710497f252e732598a5b10e284b3 /django/core/files/uploadhandler.py
parentbaaf29895c41cfafcd130d5a8f5ab548e5e9c308 (diff)
downloaddjango-772f68c20e8de89a6b029a0ff498f6120912af07.tar.gz
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
Diffstat (limited to 'django/core/files/uploadhandler.py')
-rwxr-xr-x[-rw-r--r--]django/core/files/uploadhandler.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/core/files/uploadhandler.py b/django/core/files/uploadhandler.py
index 6a0eebe43e..f6945853fe 100644..100755
--- a/django/core/files/uploadhandler.py
+++ b/django/core/files/uploadhandler.py
@@ -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,