Skip to content

Commit

Permalink
fix(attachments): uploading office mime-types #140
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Jan 30, 2019
1 parent 5d2204f commit b47da40
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/controllers/tickets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b47da40

Please sign in to comment.