fix list of allowed filetypes

v1.18.x
psychobunny 9 years ago
parent de4d747e63
commit bc2bf6ef37

@ -54,7 +54,7 @@ file.isFileTypeAllowed = function(path, allowedExtensions, callback) {
var uploadedFileExtension = mime.extension(mimeType);
if (allowedExtensions.indexOf(uploadedFileExtension) === -1) {
return callback(new Error('[[error:invalid-file-type, ' + allowedExtensions.join(', ') + ']]'));
return callback(new Error('[[error:invalid-file-type, ' + allowedExtensions.join(', ') + ']]'));
}
callback();

Loading…
Cancel
Save