From 3932b23eb6465966fba73caa5b5ed15af0fbd81a Mon Sep 17 00:00:00 2001 From: chetan Date: Fri, 3 Jul 2020 10:46:07 +0530 Subject: [PATCH] Fixed the guessing of JSON for .txt(2820) --- main/webapp/modules/core/MOD-INF/controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/webapp/modules/core/MOD-INF/controller.js b/main/webapp/modules/core/MOD-INF/controller.js index 255c5d163..ef5920660 100644 --- a/main/webapp/modules/core/MOD-INF/controller.js +++ b/main/webapp/modules/core/MOD-INF/controller.js @@ -235,7 +235,7 @@ function registerImporting() { /* * Extension to format mappings */ - IM.registerExtension(".txt", "text/line-based"); + IM.registerExtension(".txt", "text"); IM.registerExtension(".csv", "text/line-based/*sv"); IM.registerExtension(".tsv", "text/line-based/*sv"); @@ -266,7 +266,7 @@ function registerImporting() { /* * Mime type to format mappings */ - IM.registerMimeType("text/plain", "text/line-based"); + IM.registerMimeType("text/plain", "text"); IM.registerMimeType("text/csv", "text/line-based/*sv"); IM.registerMimeType("text/x-csv", "text/line-based/*sv"); IM.registerMimeType("text/tab-separated-value", "text/line-based/*sv");