Specify content-MD5 when generating presigned URL for uploading object #1161
Labels
component: s3
S3 integration related issue
type: enhancement
Smaller enhancement in existing integration
Type: Feature
Is your feature request related to a problem? Please describe.
When generating a presigned URL for uploading an object, two headers of
contentMD5
andcontentLength
are recommended to be added to avoid phishing attacks and improve overall security.The ObjectMetadata class allows me to specify the
contentLength
, but notcontentMD5
.Describe the solution you'd like
The ability to configure the contentMD5 hash when generating a PUT presigned URL, like below:
Describe alternatives you've considered
Currently, I used the
S3Client
class directly instead ofS3Template
.Additional context
Can raise a PR for this!
The text was updated successfully, but these errors were encountered: