Hi there,
This is a follow up of my previous (but auto-closed) post Multipart presigned url ‘signature not matching’ message:
I cannot wrap my head around the requirements for generating presigned multipart urls.
What I tried thus far, but failed:
-
Generate the url and signature based on a (working) single PUT upload, but with
partNumberanduploadIdincluded: returns a403 forbiddenandSignature does not match -
Generate the url but also include the Content-Type in the signing process: returns a
400 bad requestandQuery-string authentication version 4 requires the X-Amz-Algorithm, X-Amz-Credential, X-Amz-Signature, X-Amz-Date, X-Amz-SignedHeaders, and X-Amz-Expires parameters.while all parts are present in the generated url
Related: because I add Content-Type to my upload requests for single files, I extended the signing process by including SignedHeaders=content-type;host but this resulted in a Signature does not match error. But with SignedHeaders=host only it does works.
My question: am I doing something wrong or do I miss some hidden requirements? I can provide extra info if needed.
Thanks in advance.