Skip to content

Commit 055b83f

Browse files
committed
[#358] update acl and remove comment
1 parent 304c26f commit 055b83f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/controllers/aws.controller.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export function signS3(req, res) {
8080
}
8181
const fileExtension = getExtension(req.body.name);
8282
const filename = uuid.v4() + fileExtension;
83-
const acl = 'private';
83+
const acl = 'public-read';
8484
const policy = S3Policy.generate({
8585
acl,
8686
key: `${req.body.userId}/${filename}`,
@@ -89,7 +89,6 @@ export function signS3(req, res) {
8989
region: process.env.AWS_REGION,
9090
accessKey: process.env.AWS_ACCESS_KEY,
9191
secretKey: process.env.AWS_SECRET_KEY,
92-
// metadata: {'x-amz-meta-lat': '41.891',...} (optional)
9392
metadata: []
9493
});
9594
res.json(policy);

0 commit comments

Comments
 (0)