You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2023/04/14 07:50:00 UTC
[jira] [Resolved] (SLING-2862) Firefox browser send text file mime type as plain/text instead of text/plain
[ 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)