properly set mimetype for S3

pull/18/head
tycrek 3 years ago
parent 3ca38e60ac
commit 32a3375f5b
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -13,7 +13,8 @@ const upload = multer({
s3: s3,
bucket: s3bucket,
acl: 'public-read',
key: (_req, file, cb) => cb(null, file.originalname)
key: (_req, file, cb) => cb(null, file.originalname),
contentType: (_req, file, cb) => cb(null, file.mimetype)
})
}).single('file');

Loading…
Cancel
Save