• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Determining MIME types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining MIME types


  • Subject: Re: Determining MIME types
  • From: j o a r <email@hidden>
  • Date: Fri, 18 Jan 2008 17:35:45 -0800


On Jan 18, 2008, at 5:28 PM, Jim Puls wrote:

If you (simply) extract the extension from the end of a filename, you can get its UTI and then turn that in to a MIME type.


I was just about to suggest the same resource. I only have a couple of things to add:

* Keep in mind that the mappings provided by that API is incomplete, even for popular / common file types.

* IIRC (and this is clearly not my area of expertise) if you're downloading something over HTTP (and probably other protocols too) the server can provide a MIME type that differs from the one you would expect from just looking at the file name suffix. There might not even be a file name suffix, but the server can still provide a MIME type.

j o a r


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Determining MIME types
      • From: Matthew Delves <email@hidden>
References: 
 >Determining MIME types (From: Matthew Delves <email@hidden>)
 >Re: Determining MIME types (From: Jim Puls <email@hidden>)

  • Prev by Date: Re: Determining MIME types
  • Next by Date: Re: three windows two nibs
  • Previous by thread: Re: Determining MIME types
  • Next by thread: Re: Determining MIME types
  • Index(es):
    • Date
    • Thread