[jira] [Created] (OFBIZ-6702) Update SimpleContentViewHandler to return mime type on file extension and use inline for content-disposition

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (OFBIZ-6702) Update SimpleContentViewHandler to return mime type on file extension and use inline for content-disposition

Nicolas Malin (Jira)
Gareth Carter created OFBIZ-6702:
------------------------------------

             Summary: Update SimpleContentViewHandler to return mime type on file extension and use inline for content-disposition
                 Key: OFBIZ-6702
                 URL: https://issues.apache.org/jira/browse/OFBIZ-6702
             Project: OFBiz
          Issue Type: Improvement
          Components: content
    Affects Versions: Trunk
            Reporter: Gareth Carter
            Priority: Trivial
         Attachments: SimpleContentViewHandler.java.patch, UtilHttp.java.patch

SimpleContentViewHandler will return mime type 'text/html' for all DataResource values without a specified mimeTypeId. Changing to DataResourceWorker.getMimeType will allow determining the mimeTypeId by file extension

Fixing the mime type will allow the browsers to display content inline if UtilHttp is updated aswell. All unknown extensions will be set to octet-stream causing the browser to prompt for download



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)