diff --git a/src/minio/utils.js b/src/minio/utils.js index 58a6742..289784f 100644 --- a/src/minio/utils.js +++ b/src/minio/utils.js @@ -20,7 +20,7 @@ const client = new S3Client({ }); export function buildObjectURL(path) { - return `${startUrl}/${path}`; + return `${startUrl.replace(/\/$/, '')}/${path.replace(/^\//, '')}`; } export async function getFileSizeInByte(key) {