Skip to content

Commit 5b4aa80

Browse files
committed
fix: s3 url
1 parent 2e44f07 commit 5b4aa80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/services/S3Service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const upload = async (file, key, mimetype) => {
1414
const command = new PutObjectCommand(params);
1515
await s3.send(command);
1616

17-
return `https://${bucket}.s3-${region}.amazonaws.com/${key}`;
17+
return `https://${bucket}.s3-${region}.amazonaws.com/${encodeURIComponent(key)}`;
1818
};
1919

2020
module.exports = {

0 commit comments

Comments
 (0)