From 932ad0eeeb96d2eb75b29aa4e27fe89378089059 Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Fri, 25 Nov 2011 16:58:00 -0800 Subject: [PATCH] This may fixes the pdf convert issue --- node/handler/ImportHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/handler/ImportHandler.js b/node/handler/ImportHandler.js index a1ddf9924..16f85891a 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