Unverified Commit b771baf7 authored by Yukai Huang's avatar Yukai Huang Committed by GitHub
Browse files

Explicitely set uploaded image ACLs for S3 to "public-read" (#1371)

Explicitely set uploaded image ACLs for S3 to "public-read"
parents 510ccf75 3fe6ec71
......@@ -29,7 +29,8 @@ exports.uploadImage = function (imagePath, callback) {
const params = {
Bucket: config.s3bucket,
Key: path.join('uploads', path.basename(imagePath)),
Body: buffer
Body: buffer,
ACL: 'public-read'
}
const mimeType = getImageMimeType(imagePath)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment