diff --git a/api-get-object-file.go b/api-get-object-file.go index 2332dbf10..567a42e45 100644 --- a/api-get-object-file.go +++ b/api-get-object-file.go @@ -69,7 +69,7 @@ func (c *Client) FGetObject(ctx context.Context, bucketName, objectName, filePat } // Write to a temporary file "fileName.part.minio" before saving. - filePartPath := filePath + objectStat.ETag + ".part.minio" + filePartPath := filePath + sum256Hex([]byte(objectStat.ETag)) + ".part.minio" // If exists, open in append mode. If not create it as a part file. filePart, err := os.OpenFile(filePartPath, os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0o600)