Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

File Extension to MIME Type Web Service?

Are there any web services which will allow me to provide a file extension and it would return a list of possible MIME types?

For example:

http://mimetype.com/getMime/doc

Which could return:

application/msword,application/docappl/text,application/vnd.msword,application/vnd.ms-word,application/winword,application/word,application/x-msw6,application/x-msword

I don't want to use Urlmon.dll and I would prefer not having to keep my own list up-to-date.

Thanks

like image 393
GateKiller Avatar asked Jan 27 '09 14:01

GateKiller


1 Answers

I just created this as part of my mimetype <-> icon service

http://stdicon.com/

For example :

http://stdicon.com/ext/html

It runs on appengine so it should have high availability.

like image 127
Paul Tarjan Avatar answered Sep 28 '22 01:09

Paul Tarjan