Open nawlbergs opened 1 year ago
// our bucket is uploads.site.com.. and we could dump the upload in a directory like this...
multerS3({
s3: s3,
bucket : 'uploads.site.com/',
key: function (req, file, cb) {
cb(null, `${someDynamicDir}/images/${file.originalname}`)
},
try this
Updating our app the the AWS v3. After doing so..
... now we get
Bucket name shouldn't contain '/'
errors.How do you properly define sub directories in multer v3?