Skip to content

Commit

Permalink
fix file mime validation
Browse files Browse the repository at this point in the history
  • Loading branch information
wellingguzman committed Oct 28, 2016
1 parent fc90a7b commit 241495d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/modules/files/FilesModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function(app, _, Backbone, EntriesModel, Notification, __t, Utils, File) {
},

setFile: function(file, allowedMimeTypes, fn) {
if (!this.isFileAllowed(file.type, allowedMimeTypes)) {
if (!this.isMimeTypeAllowed(file.type, allowedMimeTypes)) {
return false;
}

Expand Down

0 comments on commit 241495d

Please sign in to comment.