Upload
utility class API should allow us to have FULL_OBJECT
checksum check
#6891
Labels
feature-request
New feature or enhancement. May require GitHub community feedback.
p2
This is a standard priority issue
Describe the feature
I need to check the uploaded file's integrity. I get an stream of data, so I was also hoping to see a more intuitive API. I mean right now I have to calculate the checksum of the entire file first since I need it when I am instantiating a new instance of this class.
It is somewhat related to this issue: #6742
Use Case
What this means in a real world application is that my client has to read the file twice which does not make sense;
aws-sdk-js-v3/lib/lib-storage/src/Upload.ts
Line 124 in 1f1905e
aws-sdk-js-v3/lib/lib-storage/src/Upload.ts
Line 205 in 1f1905e
So it would be great if we could just pass the checksum for a
FULL_OBJECT
checksum check at the end.Proposed Solution
So now here and other places you can do a simple check, if
ChecksumType
isFULL_OBJECT
you can skip attaching thisparams
to the request.Same can be applied to the rest of the places you're simply spreading whatever developer passes to the
params
.Other Information
I like to contribute but to me your codebase looked like it's been generated from a python code. So I am not entirely sure how this SDK is being developed and maintained.
Note
Please take a look at my repo: https://github.com/kasir-barati/bugs/tree/aws-s3-multipart-completion-error
There you can see how ugly
Upload
's interface is right now. Especially this example: https://github.com/kasir-barati/bugs/blob/1149c73557b939a911ec4ec999c8430aa99124f0/upload1.tsAnd I really like to know when do you think you can address this feature request.
Acknowledgements
SDK version used
3.749.0
Environment details (OS name and version, etc.)
Linux, Ubuntu 24.04.01
The text was updated successfully, but these errors were encountered: