diff --git a/src/controllers/tickets.js b/src/controllers/tickets.js index b235ef712..c4ad961d4 100644 --- a/src/controllers/tickets.js +++ b/src/controllers/tickets.js @@ -598,7 +598,12 @@ ticketsController.uploadAttachment = function (req, res) { mimetype.indexOf('audio/mp3') === -1 && mimetype.indexOf('audio/wav') === -1 && mimetype.indexOf('application/x-zip-compressed') === -1 && - mimetype.indexOf('application/pdf') === -1 + mimetype.indexOf('application/pdf') === -1 && + // Office Mime-Types + mimetype.indexOf('application/msword') === -1 && + mimetype.indexOf('application/vnd.openxmlformats-officedocument.wordprocessingml.document') === -1 && + mimetype.indexOf('application/vnd.ms-excel') === -1 && + mimetype.indexOf('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') === -1 ) { error = { status: 500,