Content-MD5 header. When you use this header, Amazon S3 checks the object against the provided MD5 value and, if they do not match, returns an error. Additionally, you can calculate the MD5 while putting an object to Amazon S3 and compare the returned ETag to the calculated MD5 value.
-
To successfully complete the
PutObjectrequest, you must have thes3:PutObjectin your IAM permissions. -
To successfully change the objects acl of your
PutObjectrequest, you must have thes3:PutObjectAclin your IAM permissions. -
The
Content-MD5header is required for any request to upload an object with a retention period configured using Amazon S3 Object Lock. For more information about Amazon S3 Object Lock, see Amazon S3 Object Lock Overview in the Amazon S3 User Guide.
External DocumentationTo learn more, visit the AWS documentation.