mirror of https://github.com/status-im/codimd.git
Explicitely set uploaded image ACLs for S3 to "public-read"
This works around permission problems with DigitalOcean spaces (where files are always *private* by default). This should not pose a difference with AWS and other providers as CodiMD only works with public S3 assets either way. Signed-off-by: Martin Honermeyer <maze@strahlungsfrei.de>
This commit is contained in:
parent
a0cc1955cb
commit
3fe6ec71e3
|
@ -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