On 29/08/2013 15:37 , Boris Zbarsky wrote:
On 8/29/13 9:32 AM, Anne van Kesteren wrote:
Doing a mixture of sniffing and labeling has not served us very well.
We cannot rely solely on sniffing because of CSS and SVG. We can rely
solely on a standardized mapping table of extension to Content-Type.
Ah, ok, the extension table is standardized, not gotten from the OS? OK,
that works.
And shockingly enough, that's been done before:
http://www.w3.org/TR/widgets/#rule-for-identifying-the-media-type-of-a-file-0
There could be a few things worth pilfering from that document in general.
--
Robin Berjon - http://berjon.com/ - @robinberjon