- From: Marcos Caceres <marcosscaceres@gmail.com>
- Date: Sat, 29 Nov 2008 15:39:11 +0000
- To: public-webapps <public-webapps@w3.org>
I had a discussion with Henri Sivonen and a few other people in the HTML-WG about using HTML5's content-type sniffing as a way of deriving the MIME type of files inside a widget package. Henri suggested that we should primarily rely on file extensions as a way of mapping files to MIME types. Although relying on extensions can be potentially unreliable, it seems like a simple solution to a complicated problem. For the spec, I guess it would mean including a table of file extension to MIME type mappings into the spec for common IANA registered types (MIME type registrations list file extensions). As a second line of defense, if there is no file extension, or the file extension does not map to the file extension to MIME table, then HTML content-type sniffing heuristics can be used. Comments? questions? suggestions? tomatoes? Kind regards, Marcos -- Marcos Caceres http://datadriven.com.au
Received on Saturday, 29 November 2008 15:40:14 UTC