BOD-36 #comment Fixed issue where one of the values could be null and incorrect values would be shown.

This commit is contained in:
Patrick Fic
2020-03-10 15:23:38 -07:00
parent 8cb6bc6a24
commit 39e3b5fb6f
2 changed files with 18 additions and 9 deletions

View File

@@ -13,13 +13,6 @@ const S3_BUCKET = process.env.Bucket;
exports.sign_s3 = (req, res) => {
console.log("Get S3 Signed Put for bucket: " + S3_BUCKET);
const s3 = new aws.S3(); // Create a new instance of S3
// if (!req.body.fileName || req.body.fileType) {
// console.log('req.body.fileName', req.body.fileName)
// console.log('req.body.fileType', req.body.fileType)
// res.json({ success: false, error: "fileName or fileType missing." });
// console.log("Error: fileName or fileType missing. ");
// return;
// }
const fileName = req.body.fileName;
const fileType = req.body.fileType;
// Set up the payload of what we are sending to the S3 api