From d2782804cb1749b22c7f5bce2e809a236f73f7d8 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Tue, 22 Apr 2014 16:07:29 +0800 Subject: [PATCH] MDL-45124 dndupload: Lowercase types when comparing IE helpfull uses a mixed-case version of 'Text' which fails the string comparison. All other browsers use lowercase for their mime-types. --- course/dndupload.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/course/dndupload.js b/course/dndupload.js index 5207f107a07..df6c35c5053 100644 --- a/course/dndupload.js +++ b/course/dndupload.js @@ -232,8 +232,12 @@ M.course_dndupload = { types_includes: function(e, type) { var i; var types = e._event.dataTransfer.types; + type = type.toLowerCase(); for (i=0; i