Re: file extensions and Mime Type
Re: file extensions and Mime Type
- Subject: Re: file extensions and Mime Type
- From: Alastair Houghton <email@hidden>
- Date: Wed, 22 Apr 2009 23:20:35 +0100
On 22 Apr 2009, at 20:14, Sean McBride wrote:
On 4/22/09 11:31 AM, rajesh said:
We have listed few mime types which we support and mapped them
accordingly for processing.
How can one retrieve the Mime type for a particular file?
The filesystem does not store a file's mime type nor its UTI as part
of
the file's metadata. The only filesystem metadata available is the
file
name extension and HFS type. Those are what Launch Services
consults to
decide the UTI.
In the case of a bundle, IIRC it may also consult Info.plist, and
there's nothing stopping Apple from adding additional mechanisms in
future.
Anyway, UTIs are the right way to go, generally speaking, which was
the point.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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