A simple lookup from file name/extension to MIME/media type, generated from mime-db, which in turn is compiled from IANA, Apache and nginx's MIME types.
There are duplicates on some of the extensions which fails the initialization of the dictionary:
( 'sub', 'image/vnd.dvb.subtitle' ),
( 'sub', 'text/vnd.dvb.subtitle' ),
There are duplicates on some of the extensions which fails the initialization of the dictionary: ( 'sub', 'image/vnd.dvb.subtitle' ), ( 'sub', 'text/vnd.dvb.subtitle' ),
and
( 'wmz', 'application/x-ms-wmz' ), ( 'wmz', 'application/x-msmetafile' ),