You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to replace obj.put(Body=..., **kwargs) functionality with obj.upload_file() due to auto multiparts upload on file > 5gb (not sure about size, let's say on large files).
How can I migrate my code in that case?
Where I can set, for example, ContentEncoding? Can I just pass it to ExtraArgs like:
Yep. You just need to set it using the ExtraArgs param. Here is an example in the docs: https://boto3.readthedocs.io/en/latest/guide/s3.html#uploads but it is for metadata instead. ContentEncoding should be very similar. All of the allowed ExtraArgs are listed here
Hello!
Suppose I have an Object:
I want to replace
obj.put(Body=..., **kwargs)
functionality withobj.upload_file(
) due to auto multiparts upload on file > 5gb (not sure about size, let's say on large files).How can I migrate my code in that case?
Where I can set, for example,
ContentEncoding
? Can I just pass it toExtraArgs
like:The text was updated successfully, but these errors were encountered: