Commit 05959121 by Pragati Upadhyay

conTentType

parent 90c38ec4
......@@ -23,7 +23,7 @@ module.exports.uploadToAwsS3 = async function (localPath, remotePath, options) {
Body: buffer,
Bucket: CONFIG.S3_BUCKET_NAME,
Key: remotePath,
ContentType: options && options.contentType ? options.contentType : 'application/octet-stream'
ContentType: options.contentType
};
s3.putObject(params, function (err, data) {
if (err) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment