Commits

Anonymous committed 0471087

pass headers and the reduced_redundancy to the multipart_upload constructor

  • Participants
  • Parent commits 289dd17

Comments (0)

Files changed (1)

File storages/backends/s3boto.py

             raise AttributeError("File was not opened in write mode.")
         self._is_dirty = True
         if self._multipart is None:
-            self._multipart = self._storage.bucket.initiate_multipart_upload(self.key.name)
+            self._multipart = self._storage.bucket.initiate_multipart_upload(
+                self.key.name,
+                headers = self._storage.headers,
+                reduced_redundancy = self.reduced_redundancy
+            )
         if self._write_buffer_size <= self._buffer_file_size:
             self._flush_write_buffer()
         return super(S3BotoStorageFile, self).write(*args, **kwargs)