A media type (also known as a MIME type) is a two-part identifier for file formats and format contents transmitted on the Internet. The Internet Assigned Numbers Authority (IANA) is the official authority for the standardization and publication of these classifications.
There are too many issues with MIME types on different operating systems, different applications saving files differently, some files not having a MIME at all, and lastly, the fact that the extension and MIME could be altered by a malicious user or program.
Seems you need to add a magic
tag with a priority
<mime-type type="text/stringtemplate">
<magic priority="50">
<!-- some match pattern -->
<!-- <match value="[some characters]" type="string" offset="0" /> -->
</magic>
<glob pattern="*.st"/>
</mime-type>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With