completing multipart upload
See original GitHub issueI’m having trouble with completing a multipart upload
given the following test code
mp = s.create_multipart_upload(Bucket='datalake.primary', Key='test1')
uid = mp['UploadId']
p1 =s.upload_part(Bucket='datalake.primary', Key='test1', PartNumber=1, UploadId=uid, Body='part_0')
s.complete_multipart_upload(Bucket='datalake.primary', Key='test1', UploadId=uid, MultipartUpload=???)
I don’t know what I’m supposed to be setting MultipartUpload to and can’t work it out in the docs. I see it needs to be a dict but not sure what it should contain.
Without it, I get the error ClientError: An error occurred (InvalidRequest) when calling the CompleteMultipartUpload operation: You must specify at least one part
Issue Analytics
- State:
- Created 9 years ago
- Reactions:4
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Uploading and copying objects using multipart upload
Multipart upload is a three-step process: You initiate the upload, you upload the object parts, and after you have uploaded all the parts,...
Read more >complete-multipart-upload — AWS CLI 2.0.34 Command ...
Completes a multipart upload by assembling previously uploaded parts. You first initiate the multipart upload and then upload all parts using the UploadPart ......
Read more >Complete a multipart upload | Cloud Storage
Completes a multipart upload by concatenating the parts into a single object. Cloud Storage can take several minutes to process a request to...
Read more >Working with multipart uploads - Hitachi Vantara Knowledge
Completing a multipart upload creates a multipart object from the uploaded parts. Aborting a multipart upload causes the uploaded parts to be ...
Read more >complete-multipart-upload - Documentation – Commvault
Completes the multipart upload of an object. Usage. complete-multipart-upload --bucket <value> --key <value> --upload-id <value> ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@owenrumney this is really not obvious from the documentation, so it took me a few tries to get right. Multipart uploads require information about each part when you try to complete the upload. This is how you can accomplish it:
I’ll see what can be done about updating the documentation upstream. Let me know if you have any other questions!
Also, you can enable low-level logging at any time with this:
Is the “ MultipartUpload” REQUIRED?
I can’t find the “REQUIRED” behind the arg “MultipartUpload” from the docs of boto3 ,but i code
the raised botocore.exceptions.ClientError: An error occurred (MalformedXML) when calling the CompleteMultipartUpload operation: Unknown