weed s3: multipart upload goes to the right bucket

fix https://github.com/chrislusf/seaweedfs/issues/908
This commit is contained in:
Chris Lu 2019-03-31 11:10:19 -07:00
parent 189c890715
commit c5a3ff1c35

View file

@ -200,8 +200,8 @@ func (s3a *S3ApiServer) PutObjectPartHandler(w http.ResponseWriter, r *http.Requ
dataReader = newSignV4ChunkedReader(r) dataReader = newSignV4ChunkedReader(r)
} }
uploadUrl := fmt.Sprintf("http://%s%s/%s/%04d.part", uploadUrl := fmt.Sprintf("http://%s%s/%s/%04d.part?collection=%s",
s3a.option.Filer, s3a.genUploadsFolder(bucket), uploadID, partID-1) s3a.option.Filer, s3a.genUploadsFolder(bucket), uploadID, partID-1, bucket)
etag, errCode := s3a.putToFiler(r, uploadUrl, dataReader) etag, errCode := s3a.putToFiler(r, uploadUrl, dataReader)