From cc3462999b80461fe30b8f4b4f272ccfbbb78b35 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Sat, 14 Nov 2020 12:05:35 +0000 Subject: [PATCH] When importing don't use file type as content type Fixes #5028 I've checked that importing other file types still works but would appreciate a sanity check! --- core/modules/wiki.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/wiki.js b/core/modules/wiki.js index b7718cac2..2d66f5440 100755 --- a/core/modules/wiki.js +++ b/core/modules/wiki.js @@ -1370,7 +1370,7 @@ exports.readFileContent = function(file,type,isBinary,deserializer,callback) { // Onload reader.onload = function(event) { var text = event.target.result, - tiddlerFields = {title: file.name || "Untitled", type: type}; + tiddlerFields = {title: file.name || "Untitled"}; if(isBinary) { var commaPos = text.indexOf(","); if(commaPos !== -1) {