I am implementing AWS S3 multipart using python boto3.
I am unable to resume the pending uploads.
s3_client = boto3.client('s3', aws_access_key_id='foobarkey', aws_secret_access_key='foobar', region_name='ap-south-1') key = 'my_long_key' upload_id = 'upload_id' # generated using create_multipart_upload method. # fetching pending upload parts response = s3_client.list_parts(Bucket='foobarbucker', Key=key, UploadId=upload_id) print(response['Parts'])
How to get the pending parts to resume.
print(response[‘Parts’]) KeyError: ‘Parts’
Advertisement
Answer
I think after create_multipart_upload, you have to start upload using: https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html