[ 
https://issues.apache.org/jira/browse/SLING-2862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carsten Ziegeler resolved SLING-2862.
-------------------------------------
    Resolution: Won't Fix

> 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
>              Labels: patch
>         Attachments: SlingFileUploadHandler.java.patch
>
>
> 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 was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to