MIME Types

Mark Thornton mthornton at optrak.co.uk
Fri Jun 27 13:11:25 PDT 2008


The Files.probeContentType documentation includes this sentence: "The 
string is guaranteed to be parsable according to the grammar in the 
RFC". However, one of the values I get is "image/OLYMPUS Raw Format" --- 
the RFC doesn't allow spaces in the sub type. Of course this also 
neither an IANA registered type nor does it start with x-. My registry 
entry for orf is "image/OLYMPUS Raw Format", so it is difficult to 
return anything else, but it does mean the guarantee can't be maintained.

Another illegal MIME type
"app/gg"    app isn't a legal type (example: Documents\My Google 
Gadgets\Analog Clock-Google.gg)

Mark Thornton






More information about the nio-discuss mailing list