AWS S3 node.js SDK uploaded file and folder permissions AWS S3 node.js SDK uploaded file and folder permissions node.js node.js

AWS S3 node.js SDK uploaded file and folder permissions


The following works like a charm. (Note the ACL key in params)

const params = {  Bucket: bucketName + path,  Key: key,  Body: buffer,  ContentEncoding: 'base64',  ContentType: 'image/jpeg',  ACL:'public-read'};await s3.putObject(params).promise();