Provides a huge dictionary of file extensions to mime types. Clone and reference or copy the class to your project.
Originally posted on StackOverflow here: http://stackoverflow.com/questions/1029740/get-mime-type-from-filename-extension
Please submit pull requests for any additions.
Thanks!
Sam