S3 Multipart Upload into ObjectLock enabled bucket (go, sdk-v2) #4839
Answered
by
AAZANOVICH
AAZANOVICH
asked this question in
Q&A
-
My understanding is that when upload to ObjectLock enabled bucket it is required to provide precomputed md5 hash of the file.
|
Beta Was this translation helpful? Give feedback.
Answered by
AAZANOVICH
May 13, 2023
Replies: 2 comments
-
Seems like the issue was in incorrect md5 lib usage, the following works: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
RanVaknin
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seems like the issue was in incorrect md5 lib usage, the following works:
hash := md5.New()
hash.Write(largeObject)
md5Hash := base64.StdEncoding.EncodeToString(hash.Sum(nil))