BOTO3 - generate_presigned_url for `put_object` return `The request signature we calculated does not match the signature you provided`

后端 未结 2 508
后悔当初
后悔当初 2021-01-20 04:50

I\'m trying to create a presigned url that will help some customers to upload files . Here my test script that is currently working

# Get the service client.         


        
2条回答
  •  花落未央
    2021-01-20 05:22

    This is covered in the github issue https://github.com/boto/boto3/issues/934

    For uploading an object, you should use generate_presigned_post. There are several parameters that cannot be embedded within the url, and those are returned to you by that method.

提交回复
热议问题