From 772f68c20e8de89a6b029a0ff498f6120912af07 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Mon, 11 May 2009 10:13:43 +0000 Subject: [PATCH] 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 --- django/core/files/uploadhandler.py | 1 + 1 file changed, 1 insertion(+) mode change 100644 => 100755 django/core/files/uploadhandler.py diff --git a/django/core/files/uploadhandler.py b/django/core/files/uploadhandler.py old mode 100644 new mode 100755 index 6a0eebe43e..f6945853fe --- 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,