Commit 4c3a83e9 authored by Elouan Martinet's avatar Elouan Martinet
Browse files

[storages] Seek Binary before and after copying it

parent 0e6274cf3209
......@@ -69,7 +69,9 @@ class S3Storage(Storage):
# copy Binary value, workaround for boto3 bug
# https://github.com/boto/s3transfer/issues/80
# .read() is required since Binary can't wrap itself
binary.seek(0)
buffer = Binary(binary.read())
binary.seek(0)
self.debug('Upload object to S3')
# upload_fileobj should make automagically a multipart upload if
# needed
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment