W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2008

[widgets] Content-type sniffing and file extension to MIME mapping

From: Marcos Caceres <marcosscaceres@gmail.com>
Date: Sat, 29 Nov 2008 15:39:11 +0000
Message-ID: <b21a10670811290739j1882de65g7c81a5ca224405f8@mail.gmail.com>
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 Caceres
Received on Saturday, 29 November 2008 15:40:14 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:12 UTC