[jboss-jira] [JBoss JIRA] Created: (JBPORTAL-2364) Duplicate mime-mappings causes FireFox to upload *.jpg files as image/pjpeg

Magesh Kumar B (JIRA) jira-events at lists.jboss.org
Wed Apr 1 05:44:44 EDT 2009


Duplicate mime-mappings causes FireFox to upload *.jpg files as image/pjpeg
---------------------------------------------------------------------------

                 Key: JBPORTAL-2364
                 URL: https://jira.jboss.org/jira/browse/JBPORTAL-2364
             Project: JBoss Portal
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Portal CMS
    Affects Versions: 2.6.6 Final
            Reporter: Magesh Kumar B
            Assignee: Sohil Shah


Microsoft web browsers uploads all images with file extension *.jpg as content type image/pjpeg. This has been an issue and the world is aware of this. The same file with *.jpg extension uploads as content type image/jpeg in FireFox (using a simple upload form in JSP). However CMS file upload either through FireFox or IE always uploads *.jpg as image/pjpeg. This was attributed to the mime-mappings.xml having an additional entry towards the end of the file as:

   <mime-mapping>
      <extension>jpg</extension>
      <mime-type>image/pjpeg</mime-type>
   </mime-mapping>

However users are facing issue with this type of mime-type in mobile applications as these are not displayed in mobile browsers. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list