Skip to content

Commit

Permalink
enhancement: Add gig mimetype to upload files
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorybesson committed Nov 18, 2016
1 parent cdc9812 commit b2a603d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/routes/post-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ var route = function(req, res, next){
returnErr('file is too big')
})

if (mimetype !== 'image/jpeg' && mimetype !== 'image/png' && mimetype !== 'image/svg+xml' && mimetype !== 'video/mp4') {
if (mimetype !== 'image/gif' && mimetype !== 'image/jpeg' && mimetype !== 'image/png' && mimetype !== 'image/svg+xml' && mimetype !== 'video/mp4') {
returnErr('unauthorized file')
} else if (ext !== '.jpg' && ext !== '.jpeg' && ext !== '.png' && ext !== '.svg' && ext !== '.mp4') {
} else if (ext !== '.gif' && ext !== '.jpg' && ext !== '.jpeg' && ext !== '.png' && ext !== '.svg' && ext !== '.mp4') {
returnErr('not a valid asset')
}

Expand Down

0 comments on commit b2a603d

Please sign in to comment.