Skip to content

Commit

Permalink
fix double slash
Browse files Browse the repository at this point in the history
  • Loading branch information
VovaStelmashchuk committed Sep 13, 2024
1 parent 133a54d commit 9f9937a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/minio/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9f9937a

Please sign in to comment.