IDEMPIERE-5223 Allow attachment preview for xml and json (#1231)
This commit is contained in:
parent
d3e74faa32
commit
299454d5df
|
@ -357,6 +357,7 @@ public class MimeType
|
||||||
// { ".jpg", "image/pjpeg"},
|
// { ".jpg", "image/pjpeg"},
|
||||||
{ ".jps", "image/x-jps"},
|
{ ".jps", "image/x-jps"},
|
||||||
{ ".js", "application/x-javascript"},
|
{ ".js", "application/x-javascript"},
|
||||||
|
{ ".json", "application/json"},
|
||||||
{ ".jut", "image/jutvision"},
|
{ ".jut", "image/jutvision"},
|
||||||
|
|
||||||
{ ".kar", "audio/midi"},
|
{ ".kar", "audio/midi"},
|
||||||
|
|
|
@ -146,6 +146,8 @@ public class WAttachment extends Window implements EventListener<Event>
|
||||||
autoPreviewList.add("image/gif");
|
autoPreviewList.add("image/gif");
|
||||||
autoPreviewList.add("text/plain");
|
autoPreviewList.add("text/plain");
|
||||||
autoPreviewList.add("application/pdf");
|
autoPreviewList.add("application/pdf");
|
||||||
|
autoPreviewList.add("text/xml");
|
||||||
|
autoPreviewList.add("application/json");
|
||||||
// autoPreviewList.add("text/html"); IDEMPIERE-3980
|
// autoPreviewList.add("text/html"); IDEMPIERE-3980
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue