mirror of
https://github.com/status-im/codimd.git
synced 2025-02-17 10:26:55 +00:00
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 = {
|
const params = {
|
||||||
Bucket: config.s3bucket,
|
Bucket: config.s3bucket,
|
||||||
Key: path.join('uploads', path.basename(imagePath)),
|
Key: path.join('uploads', path.basename(imagePath)),
|
||||||
Body: buffer
|
Body: buffer,
|
||||||
|
ACL: 'public-read'
|
||||||
}
|
}
|
||||||
|
|
||||||
const mimeType = getImageMimeType(imagePath)
|
const mimeType = getImageMimeType(imagePath)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user