MDL-38033 dndupload - ignore case when comparing dropped file extensions with those...
authorDavo Smith <git@davosmith.co.uk>
Thu, 14 Feb 2013 20:19:41 +0000 (20:19 +0000)
committerDavo Smith <git@davosmith.co.uk>
Thu, 14 Feb 2013 20:19:41 +0000 (20:19 +0000)
course/dndupload.js

index ee8eb70..291583c 100644 (file)
@@ -549,7 +549,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++) {