mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-38033 dndupload - ignore case when comparing dropped file extensions with those supported by activity modules
This commit is contained in:
parent
09de5eb3de
commit
aea372a659
1 changed files with 1 additions and 1 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue