Commits

Anonymous 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

Comments (0)

Files changed (1)

storages/backends/s3boto.py

             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()