1. Donald Stufft
  2. django-storages


Donald Stufft  committed 13caa91

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

  • Participants
  • Parent commits 006daa3
  • Branches boto-rewind

Comments (0)

Files changed (1)

File storages/backends/s3boto.py

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