Skip to content
Browse files

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...
1 parent baaf298 commit 772f68c20e8de89a6b029a0ff498f6120912af07 @jacobian jacobian committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 django/core/files/uploadhandler.py
View
1 django/core/files/uploadhandler.py 100644 → 100755
@@ -180,6 +180,7 @@ def file_complete(self, file_size):
if not self.activated:
return
+ self.file.seek(0)
return InMemoryUploadedFile(
file = self.file,
field_name = self.field_name,

0 comments on commit 772f68c

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