0
votes

I am trying to add a file in s3-bucket in my AWS account using postman. see below screenshot.

enter image description here

I pass Host in the header as a divyesh.vkinds.com.s3.amazonaws.com where divyesh.vkinds.com is my bucket name. and in Body I am giving file as index.html as file type like image below.

enter image description here

but it is giving me The provided 'x-amz-content-sha256' header does not match what was computed. error. I searched for it but can't find anything.

1
How are you calculating the payload hash?jarmod
I am not calculating it at all.Divyesh Jesadiya
Your PUT request has an authorization header and a custom x-amz-content-sha256 header. Postman doesn't supply those afaik so you must be doing it. Are they pre-configured in your Postman collection? How are they being populated?jarmod

1 Answers

1
votes

Please check content-header. Add Content-Type as text/plain and date in this format XX-XX-XXXX