diff --git a/services/utils-service/uploadService.js b/services/utils-service/uploadService.js index 79df4c98..9f095528 100644 --- a/services/utils-service/uploadService.js +++ b/services/utils-service/uploadService.js @@ -70,7 +70,7 @@ app.use(function (req, res, next) { app.post("/upload", upload.array("uploads[]", 12), function (req, res) { var filepath = (localPath?".":__dirname)+"/" + req.files[0].path; - if (req.files[0].mimetype !== 'text/csv') { + if (req.files[0].mimetype !== 'text/csv' && req.files[0].mimetype !== 'application/vnd.ms-excel') { console.error("No proper file type"); res.status(500).send(getResponse(500, "No proper file type")); } else {