On Friday, May 10, 2013 at 2:23 AM, Jonas Sicking wrote: > On Thu, May 9, 2013 at 9:36 AM, Marcos Caceres <w...@marcosc.com > (mailto:w...@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
- Re: ZIP archive API? David Sheets
- jar protocol (was: ZIP archive API?) Robin Berjon
- Re: jar protocol (was: ZIP archive API?) Anne van Kesteren
- Re: jar protocol (was: ZIP archive API?) Bjoern Hoehrmann
- Re: jar protocol (was: ZIP archive API?) Anne van Kesteren
- Re: jar protocol (was: ZIP archive API?) Charles McCathie Nevile
- Re: jar protocol (was: ZIP archive API?) Jonas Sicking
- Re: jar protocol Robin Berjon
- Re: jar protocol Marcos Caceres
- Re: jar protocol Jonas Sicking
- Re: jar protocol Marcos Caceres
- Re: jar protocol Robin Berjon
- Re: jar protocol Brian Kardell
- Re: jar protocol Robin Berjon
- Re: jar protocol Brian Kardell
- Re: jar protocol Robin Berjon
- Re: jar protocol Brian Kardell
- Re: jar protocol Stian Soiland-Reyes
- Re: jar protocol Jonas Sicking
- Re: jar protocol (was: ZIP archive API?) Bjoern Hoehrmann
- Re: jar protocol Robin Berjon