check lower case

This commit is contained in:
j 2016-03-18 19:31:42 +01:00
parent e877371a0b
commit 51aab8648a

View file

@ -1033,7 +1033,7 @@ oml.supportedExtensions = ['pdf', 'epub', 'kepub', 'cbr', 'cbz'];
oml.upload = function(fileslist, callback) {
var files = [], ids = [];
for (var i = 0; i < fileslist.length; i++) {
var extension = Ox.last(fileslist[i].name.split('.'));
var extension = Ox.last(fileslist[i].name.split('.')).toLowerCase();
if (Ox.contains(oml.supportedExtensions, extension)) {
files.push(fileslist[i]);
}