How can I copy files bigger than 5 GB in Amazon S3?

后端 未结 4 1904
执笔经年
执笔经年 2021-02-01 17:59

Amazon S3 REST API documentation says there\'s a size limit of 5gb for upload in a PUT operation. Files bigger than that have to be uploaded using multipart. Fine.

Howev

4条回答
  •  清酒与你
    2021-02-01 18:53

    The above was very close to working, unfortunately should have ended with mp.complete_upload() instead of the typo upload_complete()!

    I've added a working boto s3 multipart copy script here, based of the AWS Java example and tested with files over 5 GiB:

    https://gist.github.com/joshuadfranklin/5130355

提交回复
热议问题