-
Improvement
-
Resolution: Won't Do
-
Major
-
None
-
3.6.5
-
-
Yes
-
Empty show more show less
When mapping MIME types, there are generally 3 cases to be accounted for:
- File Extensions that are listed in the MIME Mapping Configuration
- File Extensions that are not listed in the MIME Mapping Configuration
- Paths without a file extension
Currently, in instance #2, the response is returned as text/html. As a result, if a user uploads a file of a type that Magnolia doesn't know about, the binary content will get dumped directly into the browser window. (This happened for us recently when a site manager uploaded an M4A file, one of the music file formats iTunes supports.) We were able to correct the problem by adding the appropriate MIME type definition to Magnolia's configuration, but it was clear that it would have been far more helpful for Magnolia to treat it as a binary file when it didn't know what the content was.
Here's a patch that, in instance #2, will return a MIME type of "application/octet-stream" instead of "text/html". Instance #1 and #3 will be unaffected.
- is related to
-
MAGNOLIA-3427 Introduce an icon for mov mime-type
- Closed