SignatureDoesNotMatch <Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message> #5481
Unanswered
tegarmonster
asked this question in
Q&A
Replies: 1 comment
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I already put object (image and pdf) to S3 with presigned URL, but when I clicked the URL, the error is:
also, I can't open the file after donwload it.. broken image or pdf
whats wrong with my code?
this is my package i use:
"@aws-sdk/client-s3": "^3.425.0",
"@aws-sdk/s3-request-presigner": "^3.425.0
this is my Frontend code to update presigned URL
const getPreSignedURL = async (body: FormData) => { const response = await fetch(
/api/put-s3-object, { method: "PUT", body, }); return await response.json(); };
the backend code: (use NextJS API)
This is my Frontend code for put object to S3
Thank you
Beta Was this translation helpful? Give feedback.
All reactions