views:

111

answers:

1

Hi All,

How to get the Content-Type for any file in ObjectiveC ?

I can then set the "Content-Type" header while sending the file to any web server.

Thanks

+1  A: 

Generally speaking, when using NSFileManager and friends, in fact, OS X and Objective-C in general; you should not use MIME types, but rather UTIs, or Uniform Type Identifiers. An introduction can be found here.

Williham Totland