checksumAlgorithm
Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum-<i>algorithm</i>
or x-amz-trailer
header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request
.
For the x-amz-checksum-<i>algorithm</i>
header, replace <i>algorithm</i>
with the supported algorithm from the following list:
CRC32
CRC32C
CRC64NVME
SHA1
SHA256
For more information, see Checking object integrity in the Amazon S3 User Guide.
If the individual checksum value you provide through x-amz-checksum-<i>algorithm</i>
doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm
, Amazon S3 fails the request with a BadDigest
error.
If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm
parameter.