MDL-38033 dndupload - ignore case when comparing dropped file extensions with those supported by activity modules

This commit is contained in:
Davo Smith 2013-02-14 20:19:41 +00:00
parent 09de5eb3de
commit aea372a659

View file

@ -549,7 +549,7 @@ M.course_dndupload = {
var extension = ''; var extension = '';
var dotpos = file.name.lastIndexOf('.'); var dotpos = file.name.lastIndexOf('.');
if (dotpos != -1) { if (dotpos != -1) {
extension = file.name.substr(dotpos+1, file.name.length); extension = file.name.substr(dotpos+1, file.name.length).toLowerCase();
} }
for (var i=0; i<filehandlers.length; i++) { for (var i=0; i<filehandlers.length; i++) {