- From: Marcos Caceres <w3c@marcosc.com>
- Date: Fri, 10 May 2013 10:18:17 +0100
- To: Jonas Sicking <jonas@sicking.cc>
- Cc: Robin Berjon <robin@w3.org>, Webapps WG <public-webapps@w3.org>
On Friday, May 10, 2013 at 2:23 AM, Jonas Sicking wrote: > On Thu, May 9, 2013 at 9:36 AM, Marcos Caceres <w3c@marcosc.com (mailto:w3c@marcosc.com)> wrote: > > On Wednesday, May 8, 2013 at 2:05 PM, Robin Berjon wrote: > > > How do you figure out media types? Is it just sniffing, or do you have > > > some sort of file extensions mapping as well? > > > > Sniffing would probably sufficient. The types on the web are pretty stable. > > > I'd probably hard-code at least a default set of extensions as well. Sure. In the ol' widget spec, we relied on a "file identification table" to match common file extensions to mime types: http://www.w3.org/TR/widgets/#file-identification-table Worked OK, AFAIK. -- Marcos Caceres
Received on Friday, 10 May 2013 09:18:49 UTC