Complete a multipart_upload with boto3?

前端 未结 6 2291
-上瘾入骨i
-上瘾入骨i 2020-12-28 21:31

Tried this:

import boto3
from boto3.s3.transfer import TransferConfig, S3Transfer
path = \"/temp/\"
fileName = \"bigFile.gz\" # this happens to be a 5.9 Gig         


        
6条回答
  •  盖世英雄少女心
    2020-12-28 21:45

    In your code snippet, clearly should be part -> part1 in the dictionary. Typically, you would have several parts (otherwise why use multi-part upload), and the 'Parts' list would contain an element for each part.

    You may also be interested in the new pythonic interface to dealing with S3: http://s3fs.readthedocs.org/en/latest/

提交回复
热议问题