mirror of
https://github.com/pgsty/minio.git
synced 2026-09-23 11:18:25 +03:00
objects: Save all the incoming metadata properly. (#1688)
For both multipart and single put operation
This commit is contained in:
committed by
Anand Babu (AB) Periasamy
parent
af85acf388
commit
7d6ed50fc2
@@ -28,8 +28,9 @@ func (fs fsObjects) ListMultipartUploads(bucket, prefix, keyMarker, uploadIDMark
|
||||
}
|
||||
|
||||
// NewMultipartUpload - initialize a new multipart upload, returns a unique id.
|
||||
func (fs fsObjects) NewMultipartUpload(bucket, object string) (string, error) {
|
||||
return newMultipartUploadCommon(fs.storage, bucket, object)
|
||||
func (fs fsObjects) NewMultipartUpload(bucket, object string, meta map[string]string) (string, error) {
|
||||
meta = make(map[string]string) // Reset the meta value, we are not going to save headers for fs.
|
||||
return newMultipartUploadCommon(fs.storage, bucket, object, meta)
|
||||
}
|
||||
|
||||
// PutObjectPart - writes the multipart upload chunks.
|
||||
|
||||
Reference in New Issue
Block a user