#10067: Extension should determine file type with same sniffer rule
--------------------------------+-----------------------------------
Reporter: humdinger | Owner: bonefish
Type: enhancement | Status: new
Priority: normal | Milestone: R1
Component: Servers/registrar | Version: R1/Package Management
Resolution: | Keywords:
Blocked By: | Blocking: 10917
Platform: All |
--------------------------------+-----------------------------------
Comment (by CodeforEvolution):
The "text/plain", "text/x-source-code", and other similar mime types are
assigned by a dedicated sniffer add-on:
https://github.com/haiku/haiku/blob/master/src/kits/storage/mime/TextSnifferAddon.cpp
I can say that I've also experienced too many source code files just being
MIME typed as "text/plain", so I'm in support of your endeavors nephele!
:D
I agree with pulkomandy on the handling of file extensions as more of a
"tie breaker" when deciding what MIME type to assign to a file. (That
should be just enough to fix the problem with source code files not being
identified properly too!)
--
Ticket URL: <https://dev.haiku-os.org/ticket/10067#comment:12>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.