-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix multipart upload from stream with metadata #956
Fix multipart upload from stream with metadata #956
Conversation
@petslane thank you for the contribution. |
Updated example code - copied the wrong example. Updated functional test - added metadata to multipart upload. |
@petslane What was the file size used? Also please add minio-server version if used against minio-server. because i checked the master branch with 1 MB, 700 MB, 1GB, 3 GB, 6GB files with meta data .did not get any error.
|
The file size I used was 623 MiB (so it's a multipart upload, but you can configure There is no problem with minio server as it just ignores these metadata headers for part upload requests, but AWS S3 and others will throw a "Metadata cannot be specified in this context" error. With multipart upload, metadata must be provided only with upload init requests, upload parts must be without metadata. |
@petslane We will test/investigate this with S3. thank you for the details. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with AWS S3. Changes look good to me. 👍
With current
[email protected]
when uploading a large file from a stream usingputObject()
and providing metadata will fail with error:Same issue as #743 but I think it fixed
fPutObject()
. this issue fixesputObject()
.Example code:
refs #743 #744