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:24:12 +00:00
parent bbcf8dab4f
commit 7d7b959bd6
+1 -1
View File
@@ -548,7 +548,7 @@ M.course_dndupload = {
var extension = '';
var dotpos = file.name.lastIndexOf('.');
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++) {