mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
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:
1
django/core/files/uploadhandler.py
Normal file → Executable file
1
django/core/files/uploadhandler.py
Normal file → Executable 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,
|
||||
|
||||
Reference in New Issue
Block a user