diff --git a/cmd/erasure-multipart.go b/cmd/erasure-multipart.go index c260e0633..15cedd1a2 100644 --- a/cmd/erasure-multipart.go +++ b/cmd/erasure-multipart.go @@ -283,7 +283,7 @@ func (er erasureObjects) newMultipartUpload(ctx context.Context, bucket string, } dataBlocks := len(onlineDisks) - parityBlocks - fi := newFileInfo(object, dataBlocks, parityBlocks) + fi := newFileInfo(pathJoin(bucket, object), dataBlocks, parityBlocks) // we now know the number of blocks this object needs for data and parity. // establish the writeQuorum using this data diff --git a/cmd/erasure-object.go b/cmd/erasure-object.go index 6ef0d8264..16e7f89a5 100644 --- a/cmd/erasure-object.go +++ b/cmd/erasure-object.go @@ -654,7 +654,7 @@ func (er erasureObjects) putObject(ctx context.Context, bucket string, object st // Initialize parts metadata partsMetadata := make([]FileInfo, len(storageDisks)) - fi := newFileInfo(object, dataDrives, parityDrives) + fi := newFileInfo(pathJoin(bucket, object), dataDrives, parityDrives) if opts.Versioned { fi.VersionID = opts.VersionID