S3: add metadata with multipart upload

fix https://github.com/chrislusf/seaweedfs/issues/2173
This commit is contained in:
Chris Lu
2021-07-01 19:12:11 -07:00
parent 2420c60fc4
commit c6d4c16079
3 changed files with 16 additions and 8 deletions

View File

@@ -214,10 +214,6 @@ func (fs *FilerServer) saveMetaData(ctx context.Context, r *http.Request, fileNa
Size: int64(entry.FileSize),
}
if entry.Extended == nil {
entry.Extended = make(map[string][]byte)
}
entry.Extended = SaveAmzMetaData(r, entry.Extended, false)
for k, v := range r.Header {