1. Alan Justino
  2. django-storages

Commits

Firstname Lastname  committed 757c908

[FIX] AttributeError: fp is at EOF. Use rewind option or seek() to data start.

From: https://github.com/boto/boto/issues/883#issuecomment-7667578

  • Participants
  • Parent commits 767a5e0
  • Branches custom-1.1.6

Comments (0)

Files changed (1)

File storages/backends/s3boto.py

View file
  • Ignore whitespace
             self._multipart = self._storage.bucket.initiate_multipart_upload(
                 self.key.name,
                 headers=upload_headers,
-                reduced_redundancy=self._storage.reduced_redundancy
+                reduced_redundancy=self._storage.reduced_redundancy,
+                rewind=True,
             )
         if self._write_buffer_size <= self._buffer_file_size:
             self._flush_write_buffer()