IDEMPIERE-5223 Allow attachment preview for xml and json (#1231)

This commit is contained in:
Carlos Ruiz 2022-03-08 05:25:46 +01:00 committed by GitHub
parent d3e74faa32
commit 299454d5df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -357,6 +357,7 @@ public class MimeType
// { ".jpg", "image/pjpeg"},
{ ".jps", "image/x-jps"},
{ ".js", "application/x-javascript"},
{ ".json", "application/json"},
{ ".jut", "image/jutvision"},
{ ".kar", "audio/midi"},

View File

@ -146,6 +146,8 @@ public class WAttachment extends Window implements EventListener<Event>
autoPreviewList.add("image/gif");
autoPreviewList.add("text/plain");
autoPreviewList.add("application/pdf");
autoPreviewList.add("text/xml");
autoPreviewList.add("application/json");
// autoPreviewList.add("text/html"); IDEMPIERE-3980
}