diff options
-rw-r--r-- | node/handler/ImportHandler.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/handler/ImportHandler.js b/node/handler/ImportHandler.js index a1ddf992..16f85891 100644 --- a/node/handler/ImportHandler.js +++ b/node/handler/ImportHandler.js @@ -81,7 +81,7 @@ exports.doImport = function(req, res, padId) //this allows us to accept source code files like .c or .java function(callback) { - var fileEnding = srcFile.split(".")[1]; + var fileEnding = srcFile.split(".")[1].toLowerCase(); var knownFileEndings = ["txt", "doc", "docx", "pdf", "odt", "html", "htm"]; //find out if this is a known file ending |