Skip to content

Commit b2a603d

Browse files
committed
enhancement: Add gig mimetype to upload files
1 parent cdc9812 commit b2a603d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/routes/post-upload.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ var route = function(req, res, next){
4040
returnErr('file is too big')
4141
})
4242

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

0 commit comments

Comments
 (0)