Hi,
I'm trying to generate presigned urls for S3 multipart uploads. In particular I'm looking at upload initiations, i.e. http://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadInitiate.html
Do I understand correctly that boto3 at this moment doesn't offer a simple way to do this? Neither boto3.client('s3').generate_presigned_url nor boto3.client('s3').generate_presigned_post seem to be appropriate. The docs at http://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadInitiate.html say that the POST method should be used and all parameters should be passed in headers.
+1
You might be able to get it to work using presigned_url. Note that each part is a PUT. It would probably be simpler to create temporary credentials scoped to that object and let the caller handle it. That's more or less what presigned urls do anyway.
Thanks. I haven't thought about temporary credentials. It seems simpler (although requires rewriting the multipart upload code I already have working using boto 2).
Is there any updates or good resource/ workaround on how to perform Multipart upload with pre-signed URLs?
This is the documentation you are looking for :
https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-presigned-urls.html
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
I am already using the presigned URLs to enable client side to put files in S3. But the issue which is still not clear is how to put large files to S3 using these pre-signed URLs in multipart form.
Most helpful comment
Is there any updates or good resource/ workaround on how to perform Multipart upload with pre-signed URLs?