We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e44f07 commit 5b4aa80Copy full SHA for 5b4aa80
server/services/S3Service.js
@@ -14,7 +14,7 @@ const upload = async (file, key, mimetype) => {
14
const command = new PutObjectCommand(params);
15
await s3.send(command);
16
17
- return `https://${bucket}.s3-${region}.amazonaws.com/${key}`;
+ return `https://${bucket}.s3-${region}.amazonaws.com/${encodeURIComponent(key)}`;
18
};
19
20
module.exports = {
0 commit comments