Any code available to get mime-type for file?
843830May 15 2003 — edited May 17 2003Hi,
at this link http://www.utoronto.ca/ian/books/html4ed/appb/mimetype.html you can find a huge listing of content-types for files. What I'd like to know is, if there's any code available for getting the right mime-type for a given file-extension. E.g given a filename "Document.doc" returns mime-type "application/msword".
Thanks in advance,
Tom