Commits

Rich Leland  committed 8a529aa

Incorporated content_type patch from adamnelson.

  • Participants
  • Parent commits b50a844

Comments (0)

Files changed (1)

File storages/backends/s3boto.py

     def _save(self, name, content):
         name = self._clean_name(name)
         headers = self.headers
-        
-        if hasattr(content.file, 'content_type'):
-            content_type = content.file.content_type
-        else:
-            content_type = mimetypes.guess_type(name)[0] or "application/x-octet-stream"
+        content_type = mimetypes.guess_type(name)[0] or "application/x-octet-stream"
             
         if self.gzip and content_type in self.gzip_content_types:
             content = self._compress_content(content)