// or use my trick like this
let acl = 'ACL'
// like this not my trick
var upload = multer({
storage: multerS3({
s3: s3,
ACL: 'public-read',
bucket: BucketName,
key: function (req, file, cb) {
cb(null, new Date().toISOString() + '-' + file.originalname);
}
})
});
// like this with my trick for by error in ts
var upload = multer({
storage: multerS3({
s3: s3,
[acl]: 'public-read',
bucket: BucketName,
key: function (req, file, cb) {
cb(null, new Date().toISOString() + '-' + file.originalname);
}
})
});