Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #11055: fixed a regression in [10717] that caused uploaded file…

…s 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
  • Loading branch information...
commit 772f68c20e8de89a6b029a0ff498f6120912af07 1 parent baaf298
Jacob Kaplan-Moss authored May 11, 2009

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  django/core/files/uploadhandler.py
1  django/core/files/uploadhandler.py 100644 → 100755
@@ -180,6 +180,7 @@ def file_complete(self, file_size):
180 180
         if not self.activated:
181 181
             return
182 182
 
  183
+        self.file.seek(0)
183 184
         return InMemoryUploadedFile(
184 185
             file = self.file,
185 186
             field_name = self.field_name,

0 notes on commit 772f68c

Please sign in to comment.
Something went wrong with that request. Please try again.