You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Ondrej Florian (JIRA)" <ji...@apache.org> on 2013/05/09 13:41:16 UTC

[jira] [Created] (SLING-2862) Firefox browser send text file mime type as plain/text instead of text/plain

Ondrej Florian created SLING-2862:
-------------------------------------

             Summary: Firefox browser send text file mime type as plain/text instead of text/plain
                 Key: SLING-2862
                 URL: https://issues.apache.org/jira/browse/SLING-2862
             Project: Sling
          Issue Type: Bug
          Components: Servlets
            Reporter: Ondrej Florian
            Priority: Minor


When uploading a text file, Firebug browser sets mime type to plain/text instead of text/plain.
This cases a text files not be handled correctly (e.g. during indexing).

Although this is problem of a browser rather then Sling itself, it should be handled 'somehow'.
I added quick hack to change the mime mapping in upload servlet itself, however proper solution would be to just ignore the mime type send by a browser and try to guess it from the data itself.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira