Commit 063cd85e by Pragati Upadhyay

conTentType

parent da77571e
......@@ -14,6 +14,7 @@ const s3 = new AWS.S3({
})
module.exports.uploadToAwsS3 = async function (localPath, remotePath, options) {
console.log("🚀 ~ options:", options)
const buffer = Fs.readFileSync(localPath);
......@@ -40,7 +41,7 @@ module.exports.uploadToAwsS3 = async function (localPath, remotePath, options) {
return
} catch (error) {
errorLog.error(error, `error occur while uploading data to s3`);
console.log(error);
return { status: httpStatus.NETWORK_ERROR, path: remotePath }
}
}
......
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