[UtilsService]: Add on allowed file types application/vnd.ms-excel for windows.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@56956 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
13cef554e4
commit
2d888181a0
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue