Commits

Donald Stufft committed 13caa91

Use the rewind feature in boto, this will make things work even if the file was previously read

Comments (0)

Files changed (1)

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