check lower case
This commit is contained in:
parent
e877371a0b
commit
51aab8648a
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue