Ticket #11055: 11055-rewind-file.patch

File 11055-rewind-file.patch, 485 bytes (added by Armin Ronacher, 16 years ago)
  • 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 6a0eebe..f694585
    a b class MemoryFileUploadHandler(FileUploadHandler):  
    180180        if not self.activated:
    181181            return
    182182
     183        self.file.seek(0)
    183184        return InMemoryUploadedFile(
    184185            file = self.file,
    185186            field_name = self.field_name,
Back to Top