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)
}
uploadUrl := fmt.Sprintf("http://%s%s/%s/%04d.part",
s3a.option.Filer, s3a.genUploadsFolder(bucket), uploadID, partID-1)
uploadUrl := fmt.Sprintf("http://%s%s/%s/%04d.part?collection=%s",
s3a.option.Filer, s3a.genUploadsFolder(bucket), uploadID, partID-1, bucket)
etag, errCode := s3a.putToFiler(r, uploadUrl, dataReader)