mirror of https://github.com/status-im/codimd.git
Explicitely set uploaded image ACLs for S3 to "public-read" (#1371)
Explicitely set uploaded image ACLs for S3 to "public-read"
This commit is contained in:
commit
b771baf7ab
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue