Use sha256 instead of md5 to check file integrity, while putting object to S3 with presigned url #2999
Answered
by
mullermp
yemchenko-dan
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
mullermp
Mar 27, 2024
Replies: 1 comment 1 reply
-
Pre-signed requests and urls for There are options for |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
yemchenko-dan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pre-signed requests and urls for
put_object
should support all of the available options: https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Client.html#put_object-instance_methodThere are options for
checksum_algorithm
for selecting CRC32/C and SHA1/256 options, and options for taking the digest. The SDK will calculate this value. I believe the SDK will validate it for you when downloading the file, though that wouldn't be done in a presigned request.