Commits

David Larlet committed 0131d5d

S3: start chunk support, thanks Sebastian Serrano for the patch!

Comments (0)

Files changed (1)

         return remote_file
 
     def _save(self, name, content):
-        self._put_file(name, content.read())
+        if hasattr(content, 'chunks'):
+            content_str = ''.join(chunk for chunk in content.chunks())
+        else:
+            content_str = content.read()
+        self._put_file(name, content_str)
         return name
     
     def delete(self, name):