Commits

Jannis Leidel  committed f312d8b

Pass the rewind parameter to Boto's set_contents_from_file method since rewinding a file was disabled in >= 2.3.0.

  • Participants
  • Parent commits 1574890

Comments (0)

Files changed (1)

File storages/backends/s3boto.py

 
         key.set_metadata('Content-Type', content_type)
         key.set_contents_from_file(content, headers=headers, policy=self.acl,
-                                 reduced_redundancy=self.reduced_redundancy)
+                                 reduced_redundancy=self.reduced_redundancy,
+                                 rewind=True)
         return cleaned_name
 
     def delete(self, name):