MDL-38033 dndupload - ignore case when comparing dropped file extensions with those supported by activity modules
This commit is contained in:
+1
-1
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user