I am implementing AWS S3 multipart using python boto3.
I am unable to resume the pending uploads.
JavaScript
x
9
1
s3_client = boto3.client('s3', aws_access_key_id='foobarkey', aws_secret_access_key='foobar', region_name='ap-south-1')
2
3
key = 'my_long_key'
4
upload_id = 'upload_id' # generated using create_multipart_upload method.
5
6
# fetching pending upload parts
7
response = s3_client.list_parts(Bucket='foobarbucker', Key=key, UploadId=upload_id)
8
print(response['Parts'])
9
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