Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to get a copy of mime.types file? [closed]

Wondering if anyone experienced develop anything that deals with mime type and know where to get a copy of latest mime.types. A file that contains all the MIME Type/Extention.

ftp dir at iana.org seem to be no longer accessible.

I have a java program which requires file that lists all mime types and extentions for file type validation.

MimetypesFileTypeMap mmp = new MimetypesFileTypeMap("path/to/mime.types");

example of mime.types content

# MIME type         Extension
application/vnd.motorola.flexsuite.ttc
application/vnd.motorola.flexsuite.wem
application/vnd.mozilla.xul+xml
application/vnd.ms-artgalry
application/vnd.ms-asf
application/vnd.ms-excel    xls
application/vnd.ms-lrm
application/vnd.ms-powerpoint   ppt

Update:

Found an efficient copy of this file in Apache HTTPD repos

like image 434
netic Avatar asked Nov 24 '22 18:11

netic


1 Answers

The latest always is in the trunk of this repository http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/conf/mime.types?view=markup

like image 123
lainz Avatar answered Feb 03 '23 14:02

lainz