PHPでMIMETYPEから拡張子を判定する用の配列

#base64encodeされたデータから、MIMETYPEを取得して拡張子を判定したかった
Codeigniterに拡張子→MIMETYPEはあったけど
その逆はなかったので、配列のkeyから拡張子を判定できるような配列が欲しかった。

**ユーザーのアップロードで使いそうなのはこれくらい。**

```php
$mimetypes = array();

// ZIP関係
$mimetypes["application/x-7z-compressed"]  => ".7z";
$mimetypes["application/x-zip-compressed"] => ".zip";
$mimetypes["application/x-gzip"]           => ".gz";

// 画像関係
$mimetypes["image/gif"]  => ".gif";
$mimetypes["image/jpeg"] => ".jpg";
$mimetypes["image/png"]  => ".png";

// Word
$mimetypes["application/msword"] => ".doc";
$mimetypes["application/vnd.openxmlformats-officedocument.wordprocessingml.document"] => ".docx";

// Excel
$mimetypes["application/vnd.ms-excel"] => ".xls";
$mimetypes["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"] => ".xlsx";

// PowerPoint
$mimetypes["application/vnd.ms-powerpoint"] => ".ppt";
$mimetypes["application/vnd.openxmlformats-officedocument.presentationml.presentation"] => ".pptx";

// PDF
$mimetypes["application/pdf"] => ".pdf";
```

以下は一覧。
ただ、keyがユニークじゃないので適宜変更必要。

```php
$mimetypes["text/h323"] => ".323";
$mimetypes["video/3gpp2"] => ".3g2";
$mimetypes["video/3gpp"] => ".3gp";
$mimetypes["video/3gpp2"] => ".3gp2";
$mimetypes["video/3gpp"] => ".3gpp";
$mimetypes["application/x-7z-compressed"] => ".7z";
$mimetypes["audio/audible"] => ".aa";
$mimetypes["audio/aac"] => ".AAC";
$mimetypes["application/octet-stream"] => ".aaf";
$mimetypes["audio/vnd.audible.aax"] => ".aax";
$mimetypes["audio/ac3"] => ".ac3";
$mimetypes["application/octet-stream"] => ".aca";
$mimetypes["application/msaccess.addin"] => ".accda";
$mimetypes["application/msaccess"] => ".accdb";
$mimetypes["application/msaccess.cab"] => ".accdc";
$mimetypes["application/msaccess"] => ".accde";
$mimetypes["application/msaccess.runtime"] => ".accdr";
$mimetypes["application/msaccess"] => ".accdt";
$mimetypes["application/msaccess.webapplication"] => ".accdw";
$mimetypes["application/msaccess.ftemplate"] => ".accft";
$mimetypes["application/internet-property-stream"] => ".acx";
$mimetypes["text/xml"] => ".AddIn";
$mimetypes["application/msaccess"] => ".ade";
$mimetypes["application/x-bridge-url"] => ".adobebridge";
$mimetypes["application/msaccess"] => ".adp";
$mimetypes["audio/vnd.dlna.adts"] => ".ADT";
$mimetypes["audio/aac"] => ".ADTS";
$mimetypes["application/octet-stream"] => ".afm";
$mimetypes["application/postscript"] => ".ai";
$mimetypes["audio/x-aiff"] => ".aif";
$mimetypes["audio/aiff"] => ".aifc";
$mimetypes["audio/aiff"] => ".aiff";
$mimetypes["application/vnd.adobe.air-application-installer-package+zip"] => ".air";
$mimetypes["application/x-mpeg"] => ".amc";
$mimetypes["application/x-ms-application"] => ".application";
$mimetypes["image/x-jg"] => ".art";
$mimetypes["application/xml"] => ".asa";
$mimetypes["application/xml"] => ".asax";
$mimetypes["application/xml"] => ".ascx";
$mimetypes["application/octet-stream"] => ".asd";
$mimetypes["video/x-ms-asf"] => ".asf";
$mimetypes["application/xml"] => ".ashx";
$mimetypes["application/octet-stream"] => ".asi";
$mimetypes["text/plain"] => ".asm";
$mimetypes["application/xml"] => ".asmx";
$mimetypes["application/xml"] => ".aspx";
$mimetypes["video/x-ms-asf"] => ".asr";
$mimetypes["video/x-ms-asf"] => ".asx";
$mimetypes["application/atom+xml"] => ".atom";
$mimetypes["audio/basic"] => ".au";
$mimetypes["video/x-msvideo"] => ".avi";
$mimetypes["application/olescript"] => ".axs";
$mimetypes["text/plain"] => ".bas";
$mimetypes["application/x-bcpio"] => ".bcpio";
$mimetypes["application/octet-stream"] => ".bin";
$mimetypes["image/bmp"] => ".bmp";
$mimetypes["text/plain"] => ".c";
$mimetypes["application/octet-stream"] => ".cab";
$mimetypes["audio/x-caf"] => ".caf";
$mimetypes["application/vnd.ms-office.calx"] => ".calx";
$mimetypes["application/vnd.ms-pki.seccat"] => ".cat";
$mimetypes["text/plain"] => ".cc";
$mimetypes["text/plain"] => ".cd";
$mimetypes["audio/aiff"] => ".cdda";
$mimetypes["application/x-cdf"] => ".cdf";
$mimetypes["application/x-x509-ca-cert"] => ".cer";
$mimetypes["application/octet-stream"] => ".chm";
$mimetypes["application/x-java-applet"] => ".class";
$mimetypes["application/x-msclip"] => ".clp";
$mimetypes["image/x-cmx"] => ".cmx";
$mimetypes["text/plain"] => ".cnf";
$mimetypes["image/cis-cod"] => ".cod";
$mimetypes["application/xml"] => ".config";
$mimetypes["text/x-ms-contact"] => ".contact";
$mimetypes["application/xml"] => ".coverage";
$mimetypes["application/x-cpio"] => ".cpio";
$mimetypes["text/plain"] => ".cpp";
$mimetypes["application/x-mscardfile"] => ".crd";
$mimetypes["application/pkix-crl"] => ".crl";
$mimetypes["application/x-x509-ca-cert"] => ".crt";
$mimetypes["text/plain"] => ".cs";
$mimetypes["text/plain"] => ".csdproj";
$mimetypes["application/x-csh"] => ".csh";
$mimetypes["text/plain"] => ".csproj";
$mimetypes["text/css"] => ".css";
$mimetypes["text/csv"] => ".csv";
$mimetypes["application/octet-stream"] => ".cur";
$mimetypes["text/plain"] => ".cxx";
$mimetypes["application/octet-stream"] => ".dat";
$mimetypes["application/xml"] => ".datasource";
$mimetypes["text/plain"] => ".dbproj";
$mimetypes["application/x-director"] => ".dcr";
$mimetypes["text/plain"] => ".def";
$mimetypes["application/octet-stream"] => ".deploy";
$mimetypes["application/x-x509-ca-cert"] => ".der";
$mimetypes["application/xml"] => ".dgml";
$mimetypes["image/bmp"] => ".dib";
$mimetypes["video/x-dv"] => ".dif";
$mimetypes["application/x-director"] => ".dir";
$mimetypes["text/xml"] => ".disco";
$mimetypes["application/x-msdownload"] => ".dll";
$mimetypes["text/xml"] => ".dll.config";
$mimetypes["text/dlm"] => ".dlm";
$mimetypes["application/msword"] => ".doc";
$mimetypes["application/vnd.ms-word.document.macroEnabled.12"] => ".docm";
$mimetypes["application/vnd.openxmlformats-officedocument.wordprocessingml.document"] => ".docx";
$mimetypes["application/msword"] => ".dot";
$mimetypes["application/vnd.ms-word.template.macroEnabled.12"] => ".dotm";
$mimetypes["application/vnd.openxmlformats-officedocument.wordprocessingml.template"] => ".dotx";
$mimetypes["application/octet-stream"] => ".dsp";
$mimetypes["text/plain"] => ".dsw";
$mimetypes["text/xml"] => ".dtd";
$mimetypes["text/xml"] => ".dtsConfig";
$mimetypes["video/x-dv"] => ".dv";
$mimetypes["application/x-dvi"] => ".dvi";
$mimetypes["drawing/x-dwf"] => ".dwf";
$mimetypes["application/octet-stream"] => ".dwp";
$mimetypes["application/x-director"] => ".dxr";
$mimetypes["message/rfc822"] => ".eml";
$mimetypes["application/octet-stream"] => ".emz";
$mimetypes["application/octet-stream"] => ".eot";
$mimetypes["application/postscript"] => ".eps";
$mimetypes["application/etl"] => ".etl";
$mimetypes["text/x-setext"] => ".etx";
$mimetypes["application/envoy"] => ".evy";
$mimetypes["application/octet-stream"] => ".exe";
$mimetypes["text/xml"] => ".exe.config";
$mimetypes["application/vnd.fdf"] => ".fdf";
$mimetypes["application/fractals"] => ".fif";
$mimetypes["Application/xml"] => ".filters";
$mimetypes["application/octet-stream"] => ".fla";
$mimetypes["x-world/x-vrml"] => ".flr";
$mimetypes["video/x-flv"] => ".flv";
$mimetypes["application/fsharp-script"] => ".fsscript";
$mimetypes["application/fsharp-script"] => ".fsx";
$mimetypes["application/xml"] => ".generictest";
$mimetypes["image/gif"] => ".gif";
$mimetypes["text/x-ms-group"] => ".group";
$mimetypes["audio/x-gsm"] => ".gsm";
$mimetypes["application/x-gtar"] => ".gtar";
$mimetypes["application/x-gzip"] => ".gz";
$mimetypes["text/plain"] => ".h";
$mimetypes["application/x-hdf"] => ".hdf";
$mimetypes["text/x-hdml"] => ".hdml";
$mimetypes["application/x-oleobject"] => ".hhc";
$mimetypes["application/octet-stream"] => ".hhk";
$mimetypes["application/octet-stream"] => ".hhp";
$mimetypes["application/winhlp"] => ".hlp";
$mimetypes["text/plain"] => ".hpp";
$mimetypes["application/mac-binhex40"] => ".hqx";
$mimetypes["application/hta"] => ".hta";
$mimetypes["text/x-component"] => ".htc";
$mimetypes["text/html"] => ".htm";
$mimetypes["text/html"] => ".html";
$mimetypes["text/webviewhtml"] => ".htt";
$mimetypes["application/xml"] => ".hxa";
$mimetypes["application/xml"] => ".hxc";
$mimetypes["application/octet-stream"] => ".hxd";
$mimetypes["application/xml"] => ".hxe";
$mimetypes["application/xml"] => ".hxf";
$mimetypes["application/octet-stream"] => ".hxh";
$mimetypes["application/octet-stream"] => ".hxi";
$mimetypes["application/xml"] => ".hxk";
$mimetypes["application/octet-stream"] => ".hxq";
$mimetypes["application/octet-stream"] => ".hxr";
$mimetypes["application/octet-stream"] => ".hxs";
$mimetypes["text/html"] => ".hxt";
$mimetypes["application/xml"] => ".hxv";
$mimetypes["application/octet-stream"] => ".hxw";
$mimetypes["text/plain"] => ".hxx";
$mimetypes["text/plain"] => ".i";
$mimetypes["image/x-icon"] => ".ico";
$mimetypes["application/octet-stream"] => ".ics";
$mimetypes["text/plain"] => ".idl";
$mimetypes["image/ief"] => ".ief";
$mimetypes["application/x-iphone"] => ".iii";
$mimetypes["text/plain"] => ".inc";
$mimetypes["application/octet-stream"] => ".inf";
$mimetypes["text/plain"] => ".inl";
$mimetypes["application/x-internet-signup"] => ".ins";
$mimetypes["application/x-itunes-ipa"] => ".ipa";
$mimetypes["application/x-itunes-ipg"] => ".ipg";
$mimetypes["text/plain"] => ".ipproj";
$mimetypes["application/x-itunes-ipsw"] => ".ipsw";
$mimetypes["text/x-ms-iqy"] => ".iqy";
$mimetypes["application/x-internet-signup"] => ".isp";
$mimetypes["application/x-itunes-ite"] => ".ite";
$mimetypes["application/x-itunes-itlp"] => ".itlp";
$mimetypes["application/x-itunes-itms"] => ".itms";
$mimetypes["application/x-itunes-itpc"] => ".itpc";
$mimetypes["video/x-ivf"] => ".IVF";
$mimetypes["application/java-archive"] => ".jar";
$mimetypes["application/octet-stream"] => ".java";
$mimetypes["application/liquidmotion"] => ".jck";
$mimetypes["application/liquidmotion"] => ".jcz";
$mimetypes["image/pjpeg"] => ".jfif";
$mimetypes["application/x-java-jnlp-file"] => ".jnlp";
$mimetypes["application/octet-stream"] => ".jpb";
$mimetypes["image/jpeg"] => ".jpe";
$mimetypes["image/jpeg"] => ".jpeg";
$mimetypes["image/jpeg"] => ".jpg";
$mimetypes["application/x-javascript"] => ".js";
$mimetypes["application/json"] => ".json";
$mimetypes["text/jscript"] => ".jsx";
$mimetypes["text/plain"] => ".jsxbin";
$mimetypes["application/x-latex"] => ".latex";
$mimetypes["application/windows-library+xml"] => ".library-ms";
$mimetypes["application/x-ms-reader"] => ".lit";
$mimetypes["application/xml"] => ".loadtest";
$mimetypes["application/octet-stream"] => ".lpk";
$mimetypes["video/x-la-asf"] => ".lsf";
$mimetypes["text/plain"] => ".lst";
$mimetypes["video/x-la-asf"] => ".lsx";
$mimetypes["application/octet-stream"] => ".lzh";
$mimetypes["application/x-msmediaview"] => ".m13";
$mimetypes["application/x-msmediaview"] => ".m14";
$mimetypes["video/mpeg"] => ".m1v";
$mimetypes["video/vnd.dlna.mpeg-tts"] => ".m2t";
$mimetypes["video/vnd.dlna.mpeg-tts"] => ".m2ts";
$mimetypes["video/mpeg"] => ".m2v";
$mimetypes["audio/x-mpegurl"] => ".m3u";
$mimetypes["audio/x-mpegurl"] => ".m3u8";
$mimetypes["audio/m4a"] => ".m4a";
$mimetypes["audio/m4b"] => ".m4b";
$mimetypes["audio/m4p"] => ".m4p";
$mimetypes["audio/x-m4r"] => ".m4r";
$mimetypes["video/x-m4v"] => ".m4v";
$mimetypes["image/x-macpaint"] => ".mac";
$mimetypes["text/plain"] => ".mak";
$mimetypes["application/x-troff-man"] => ".man";
$mimetypes["application/x-ms-manifest"] => ".manifest";
$mimetypes["text/plain"] => ".map";
$mimetypes["application/xml"] => ".master";
$mimetypes["application/msaccess"] => ".mda";
$mimetypes["application/x-msaccess"] => ".mdb";
$mimetypes["application/msaccess"] => ".mde";
$mimetypes["application/octet-stream"] => ".mdp";
$mimetypes["application/x-troff-me"] => ".me";
$mimetypes["application/x-shockwave-flash"] => ".mfp";
$mimetypes["message/rfc822"] => ".mht";
$mimetypes["message/rfc822"] => ".mhtml";
$mimetypes["audio/mid"] => ".mid";
$mimetypes["audio/mid"] => ".midi";
$mimetypes["application/octet-stream"] => ".mix";
$mimetypes["text/plain"] => ".mk";
$mimetypes["application/x-smaf"] => ".mmf";
$mimetypes["text/xml"] => ".mno";
$mimetypes["application/x-msmoney"] => ".mny";
$mimetypes["video/mpeg"] => ".mod";
$mimetypes["video/quicktime"] => ".mov";
$mimetypes["video/x-sgi-movie"] => ".movie";
$mimetypes["video/mpeg"] => ".mp2";
$mimetypes["video/mpeg"] => ".mp2v";
$mimetypes["audio/mpeg"] => ".mp3";
$mimetypes["video/mp4"] => ".mp4";
$mimetypes["video/mp4"] => ".mp4v";
$mimetypes["video/mpeg"] => ".mpa";
$mimetypes["video/mpeg"] => ".mpe";
$mimetypes["video/mpeg"] => ".mpeg";
$mimetypes["application/vnd.ms-mediapackage"] => ".mpf";
$mimetypes["video/mpeg"] => ".mpg";
$mimetypes["application/vnd.ms-project"] => ".mpp";
$mimetypes["video/mpeg"] => ".mpv2";
$mimetypes["video/quicktime"] => ".mqv";
$mimetypes["application/x-troff-ms"] => ".ms";
$mimetypes["application/octet-stream"] => ".msi";
$mimetypes["application/octet-stream"] => ".mso";
$mimetypes["video/vnd.dlna.mpeg-tts"] => ".mts";
$mimetypes["application/xml"] => ".mtx";
$mimetypes["application/x-msmediaview"] => ".mvb";
$mimetypes["application/x-miva-compiled"] => ".mvc";
$mimetypes["application/x-mmxp"] => ".mxp";
$mimetypes["application/x-netcdf"] => ".nc";
$mimetypes["video/x-ms-asf"] => ".nsc";
$mimetypes["message/rfc822"] => ".nws";
$mimetypes["application/octet-stream"] => ".ocx";
$mimetypes["application/oda"] => ".oda";
$mimetypes["text/x-ms-odc"] => ".odc";
$mimetypes["text/plain"] => ".odh";
$mimetypes["text/plain"] => ".odl";
$mimetypes["application/vnd.oasis.opendocument.presentation"] => ".odp";
$mimetypes["application/oleobject"] => ".ods";
$mimetypes["application/vnd.oasis.opendocument.text"] => ".odt";
$mimetypes["application/onenote"] => ".one";
$mimetypes["application/onenote"] => ".onea";
$mimetypes["application/onenote"] => ".onepkg";
$mimetypes["application/onenote"] => ".onetmp";
$mimetypes["application/onenote"] => ".onetoc";
$mimetypes["application/onenote"] => ".onetoc2";
$mimetypes["application/xml"] => ".orderedtest";
$mimetypes["application/opensearchdescription+xml"] => ".osdx";
$mimetypes["application/pkcs10"] => ".p10";
$mimetypes["application/x-pkcs12"] => ".p12";
$mimetypes["application/x-pkcs7-certificates"] => ".p7b";
$mimetypes["application/pkcs7-mime"] => ".p7c";
$mimetypes["application/pkcs7-mime"] => ".p7m";
$mimetypes["application/x-pkcs7-certreqresp"] => ".p7r";
$mimetypes["application/pkcs7-signature"] => ".p7s";
$mimetypes["image/x-portable-bitmap"] => ".pbm";
$mimetypes["application/x-podcast"] => ".pcast";
$mimetypes["image/pict"] => ".pct";
$mimetypes["application/octet-stream"] => ".pcx";
$mimetypes["application/octet-stream"] => ".pcz";
$mimetypes["application/pdf"] => ".pdf";
$mimetypes["application/octet-stream"] => ".pfb";
$mimetypes["application/octet-stream"] => ".pfm";
$mimetypes["application/x-pkcs12"] => ".pfx";
$mimetypes["image/x-portable-graymap"] => ".pgm";
$mimetypes["image/pict"] => ".pic";
$mimetypes["image/pict"] => ".pict";
$mimetypes["text/plain"] => ".pkgdef";
$mimetypes["text/plain"] => ".pkgundef";
$mimetypes["application/vnd.ms-pki.pko"] => ".pko";
$mimetypes["audio/scpls"] => ".pls";
$mimetypes["application/x-perfmon"] => ".pma";
$mimetypes["application/x-perfmon"] => ".pmc";
$mimetypes["application/x-perfmon"] => ".pml";
$mimetypes["application/x-perfmon"] => ".pmr";
$mimetypes["application/x-perfmon"] => ".pmw";
$mimetypes["image/png"] => ".png";
$mimetypes["image/x-portable-anymap"] => ".pnm";
$mimetypes["image/x-macpaint"] => ".pnt";
$mimetypes["image/x-macpaint"] => ".pntg";
$mimetypes["image/png"] => ".pnz";
$mimetypes["application/vnd.ms-powerpoint"] => ".pot";
$mimetypes["application/vnd.ms-powerpoint.template.macroEnabled.12"] => ".potm";
$mimetypes["application/vnd.openxmlformats-officedocument.presentationml.template"] => ".potx";
$mimetypes["application/vnd.ms-powerpoint"] => ".ppa";
$mimetypes["application/vnd.ms-powerpoint.addin.macroEnabled.12"] => ".ppam";
$mimetypes["image/x-portable-pixmap"] => ".ppm";
$mimetypes["application/vnd.ms-powerpoint"] => ".pps";
$mimetypes["application/vnd.ms-powerpoint.slideshow.macroEnabled.12"] => ".ppsm";
$mimetypes["application/vnd.openxmlformats-officedocument.presentationml.slideshow"] => ".ppsx";
$mimetypes["application/vnd.ms-powerpoint"] => ".ppt";
$mimetypes["application/vnd.ms-powerpoint.presentation.macroEnabled.12"] => ".pptm";
$mimetypes["application/vnd.openxmlformats-officedocument.presentationml.presentation"] => ".pptx";
$mimetypes["application/pics-rules"] => ".prf";
$mimetypes["application/octet-stream"] => ".prm";
$mimetypes["application/octet-stream"] => ".prx";
$mimetypes["application/postscript"] => ".ps";
$mimetypes["application/PowerShell"] => ".psc1";
$mimetypes["application/octet-stream"] => ".psd";
$mimetypes["application/xml"] => ".psess";
$mimetypes["application/octet-stream"] => ".psm";
$mimetypes["application/octet-stream"] => ".psp";
$mimetypes["application/x-mspublisher"] => ".pub";
$mimetypes["application/vnd.ms-powerpoint"] => ".pwz";
$mimetypes["text/x-html-insertion"] => ".qht";
$mimetypes["text/x-html-insertion"] => ".qhtm";
$mimetypes["video/quicktime"] => ".qt";
$mimetypes["image/x-quicktime"] => ".qti";
$mimetypes["image/x-quicktime"] => ".qtif";
$mimetypes["application/x-quicktimeplayer"] => ".qtl";
$mimetypes["application/octet-stream"] => ".qxd";
$mimetypes["audio/x-pn-realaudio"] => ".ra";
$mimetypes["audio/x-pn-realaudio"] => ".ram";
$mimetypes["application/octet-stream"] => ".rar";
$mimetypes["image/x-cmu-raster"] => ".ras";
$mimetypes["application/rat-file"] => ".rat";
$mimetypes["text/plain"] => ".rc";
$mimetypes["text/plain"] => ".rc2";
$mimetypes["text/plain"] => ".rct";
$mimetypes["application/xml"] => ".rdlc";
$mimetypes["application/xml"] => ".resx";
$mimetypes["image/vnd.rn-realflash"] => ".rf";
$mimetypes["image/x-rgb"] => ".rgb";
$mimetypes["text/plain"] => ".rgs";
$mimetypes["application/vnd.rn-realmedia"] => ".rm";
$mimetypes["audio/mid"] => ".rmi";
$mimetypes["application/vnd.rn-rn_music_package"] => ".rmp";
$mimetypes["application/x-troff"] => ".roff";
$mimetypes["audio/x-pn-realaudio-plugin"] => ".rpm";
$mimetypes["text/x-ms-rqy"] => ".rqy";
$mimetypes["application/rtf"] => ".rtf";
$mimetypes["text/richtext"] => ".rtx";
$mimetypes["application/xml"] => ".ruleset";
$mimetypes["text/plain"] => ".s";
$mimetypes["application/x-safari-safariextz"] => ".safariextz";
$mimetypes["application/x-msschedule"] => ".scd";
$mimetypes["text/scriptlet"] => ".sct";
$mimetypes["audio/x-sd2"] => ".sd2";
$mimetypes["application/sdp"] => ".sdp";
$mimetypes["application/octet-stream"] => ".sea";
$mimetypes["application/windows-search-connector+xml"] => ".searchConnector-ms";
$mimetypes["application/set-payment-initiation"] => ".setpay";
$mimetypes["application/set-registration-initiation"] => ".setreg";
$mimetypes["application/xml"] => ".settings";
$mimetypes["application/x-sgimb"] => ".sgimb";
$mimetypes["text/sgml"] => ".sgml";
$mimetypes["application/x-sh"] => ".sh";
$mimetypes["application/x-shar"] => ".shar";
$mimetypes["text/html"] => ".shtml";
$mimetypes["application/x-stuffit"] => ".sit";
$mimetypes["application/xml"] => ".sitemap";
$mimetypes["application/xml"] => ".skin";
$mimetypes["application/vnd.ms-powerpoint.slide.macroEnabled.12"] => ".sldm";
$mimetypes["application/vnd.openxmlformats-officedocument.presentationml.slide"] => ".sldx";
$mimetypes["application/vnd.ms-excel"] => ".slk";
$mimetypes["text/plain"] => ".sln";
$mimetypes["application/x-ms-license"] => ".slupkg-ms";
$mimetypes["audio/x-smd"] => ".smd";
$mimetypes["application/octet-stream"] => ".smi";
$mimetypes["audio/x-smd"] => ".smx";
$mimetypes["audio/x-smd"] => ".smz";
$mimetypes["audio/basic"] => ".snd";
$mimetypes["application/xml"] => ".snippet";
$mimetypes["application/octet-stream"] => ".snp";
$mimetypes["text/plain"] => ".sol";
$mimetypes["text/plain"] => ".sor";
$mimetypes["application/x-pkcs7-certificates"] => ".spc";
$mimetypes["application/futuresplash"] => ".spl";
$mimetypes["application/x-wais-source"] => ".src";
$mimetypes["text/plain"] => ".srf";
$mimetypes["text/xml"] => ".SSISDeploymentManifest";
$mimetypes["application/streamingmedia"] => ".ssm";
$mimetypes["application/vnd.ms-pki.certstore"] => ".sst";
$mimetypes["application/vnd.ms-pki.stl"] => ".stl";
$mimetypes["application/x-sv4cpio"] => ".sv4cpio";
$mimetypes["application/x-sv4crc"] => ".sv4crc";
$mimetypes["application/xml"] => ".svc";
$mimetypes["application/x-shockwave-flash"] => ".swf";
$mimetypes["application/x-troff"] => ".t";
$mimetypes["application/x-tar"] => ".tar";
$mimetypes["application/x-tcl"] => ".tcl";
$mimetypes["application/xml"] => ".testrunconfig";
$mimetypes["application/xml"] => ".testsettings";
$mimetypes["application/x-tex"] => ".tex";
$mimetypes["application/x-texinfo"] => ".texi";
$mimetypes["application/x-texinfo"] => ".texinfo";
$mimetypes["application/x-compressed"] => ".tgz";
$mimetypes["application/vnd.ms-officetheme"] => ".thmx";
$mimetypes["application/octet-stream"] => ".thn";
$mimetypes["image/tiff"] => ".tif";
$mimetypes["image/tiff"] => ".tiff";
$mimetypes["text/plain"] => ".tlh";
$mimetypes["text/plain"] => ".tli";
$mimetypes["application/octet-stream"] => ".toc";
$mimetypes["application/x-troff"] => ".tr";
$mimetypes["application/x-msterminal"] => ".trm";
$mimetypes["application/xml"] => ".trx";
$mimetypes["video/vnd.dlna.mpeg-tts"] => ".ts";
$mimetypes["text/tab-separated-values"] => ".tsv";
$mimetypes["application/octet-stream"] => ".ttf";
$mimetypes["video/vnd.dlna.mpeg-tts"] => ".tts";
$mimetypes["text/plain"] => ".txt";
$mimetypes["application/octet-stream"] => ".u32";
$mimetypes["text/iuls"] => ".uls";
$mimetypes["text/plain"] => ".user";
$mimetypes["application/x-ustar"] => ".ustar";
$mimetypes["text/plain"] => ".vb";
$mimetypes["text/plain"] => ".vbdproj";
$mimetypes["video/mpeg"] => ".vbk";
$mimetypes["text/plain"] => ".vbproj";
$mimetypes["text/vbscript"] => ".vbs";
$mimetypes["text/x-vcard"] => ".vcf";
$mimetypes["Application/xml"] => ".vcproj";
$mimetypes["text/plain"] => ".vcs";
$mimetypes["Application/xml"] => ".vcxproj";
$mimetypes["text/plain"] => ".vddproj";
$mimetypes["text/plain"] => ".vdp";
$mimetypes["text/plain"] => ".vdproj";
$mimetypes["application/vnd.ms-visio.viewer"] => ".vdx";
$mimetypes["text/xml"] => ".vml";
$mimetypes["application/xml"] => ".vscontent";
$mimetypes["text/xml"] => ".vsct";
$mimetypes["application/vnd.visio"] => ".vsd";
$mimetypes["application/ms-vsi"] => ".vsi";
$mimetypes["application/vsix"] => ".vsix";
$mimetypes["text/xml"] => ".vsixlangpack";
$mimetypes["text/xml"] => ".vsixmanifest";
$mimetypes["application/xml"] => ".vsmdi";
$mimetypes["text/plain"] => ".vspscc";
$mimetypes["application/vnd.visio"] => ".vss";
$mimetypes["text/plain"] => ".vsscc";
$mimetypes["text/xml"] => ".vssettings";
$mimetypes["text/plain"] => ".vssscc";
$mimetypes["application/vnd.visio"] => ".vst";
$mimetypes["text/xml"] => ".vstemplate";
$mimetypes["application/x-ms-vsto"] => ".vsto";
$mimetypes["application/vnd.visio"] => ".vsw";
$mimetypes["application/vnd.visio"] => ".vsx";
$mimetypes["application/vnd.visio"] => ".vtx";
$mimetypes["audio/wav"] => ".wav";
$mimetypes["audio/wav"] => ".wave";
$mimetypes["audio/x-ms-wax"] => ".wax";
$mimetypes["application/msword"] => ".wbk";
$mimetypes["image/vnd.wap.wbmp"] => ".wbmp";
$mimetypes["application/vnd.ms-works"] => ".wcm";
$mimetypes["application/vnd.ms-works"] => ".wdb";
$mimetypes["image/vnd.ms-photo"] => ".wdp";
$mimetypes["application/x-safari-webarchive"] => ".webarchive";
$mimetypes["application/xml"] => ".webtest";
$mimetypes["application/xml"] => ".wiq";
$mimetypes["application/msword"] => ".wiz";
$mimetypes["application/vnd.ms-works"] => ".wks";
$mimetypes["application/wlmoviemaker"] => ".WLMP";
$mimetypes["application/x-wlpg-detect"] => ".wlpginstall";
$mimetypes["application/x-wlpg3-detect"] => ".wlpginstall3";
$mimetypes["video/x-ms-wm"] => ".wm";
$mimetypes["audio/x-ms-wma"] => ".wma";
$mimetypes["application/x-ms-wmd"] => ".wmd";
$mimetypes["application/x-msmetafile"] => ".wmf";
$mimetypes["text/vnd.wap.wml"] => ".wml";
$mimetypes["application/vnd.wap.wmlc"] => ".wmlc";
$mimetypes["text/vnd.wap.wmlscript"] => ".wmls";
$mimetypes["application/vnd.wap.wmlscriptc"] => ".wmlsc";
$mimetypes["video/x-ms-wmp"] => ".wmp";
$mimetypes["video/x-ms-wmv"] => ".wmv";
$mimetypes["video/x-ms-wmx"] => ".wmx";
$mimetypes["application/x-ms-wmz"] => ".wmz";
$mimetypes["application/vnd.ms-wpl"] => ".wpl";
$mimetypes["application/vnd.ms-works"] => ".wps";
$mimetypes["application/x-mswrite"] => ".wri";
$mimetypes["x-world/x-vrml"] => ".wrl";
$mimetypes["x-world/x-vrml"] => ".wrz";
$mimetypes["text/scriptlet"] => ".wsc";
$mimetypes["text/xml"] => ".wsdl";
$mimetypes["video/x-ms-wvx"] => ".wvx";
$mimetypes["application/directx"] => ".x";
$mimetypes["x-world/x-vrml"] => ".xaf";
$mimetypes["application/xaml+xml"] => ".xaml";
$mimetypes["application/x-silverlight-app"] => ".xap";
$mimetypes["application/x-ms-xbap"] => ".xbap";
$mimetypes["image/x-xbitmap"] => ".xbm";
$mimetypes["text/plain"] => ".xdr";
$mimetypes["application/xhtml+xml"] => ".xht";
$mimetypes["application/xhtml+xml"] => ".xhtml";
$mimetypes["application/vnd.ms-excel"] => ".xla";
$mimetypes["application/vnd.ms-excel.addin.macroEnabled.12"] => ".xlam";
$mimetypes["application/vnd.ms-excel"] => ".xlc";
$mimetypes["application/vnd.ms-excel"] => ".xld";
$mimetypes["application/vnd.ms-excel"] => ".xlk";
$mimetypes["application/vnd.ms-excel"] => ".xll";
$mimetypes["application/vnd.ms-excel"] => ".xlm";
$mimetypes["application/vnd.ms-excel"] => ".xls";
$mimetypes["application/vnd.ms-excel.sheet.binary.macroEnabled.12"] => ".xlsb";
$mimetypes["application/vnd.ms-excel.sheet.macroEnabled.12"] => ".xlsm";
$mimetypes["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"] => ".xlsx";
$mimetypes["application/vnd.ms-excel"] => ".xlt";
$mimetypes["application/vnd.ms-excel.template.macroEnabled.12"] => ".xltm";
$mimetypes["application/vnd.openxmlformats-officedocument.spreadsheetml.template"] => ".xltx";
$mimetypes["application/vnd.ms-excel"] => ".xlw";
$mimetypes["text/xml"] => ".xml";
$mimetypes["application/xml"] => ".xmta";
$mimetypes["x-world/x-vrml"] => ".xof";
$mimetypes["text/plain"] => ".XOML";
$mimetypes["image/x-xpixmap"] => ".xpm";
$mimetypes["application/vnd.ms-xpsdocument"] => ".xps";
$mimetypes["text/xml"] => ".xrm-ms";
$mimetypes["application/xml"] => ".xsc";
$mimetypes["text/xml"] => ".xsd";
$mimetypes["text/xml"] => ".xsf";
$mimetypes["text/xml"] => ".xsl";
$mimetypes["text/xml"] => ".xslt";
$mimetypes["application/octet-stream"] => ".xsn";
$mimetypes["application/xml"] => ".xss";
$mimetypes["application/octet-stream"] => ".xtp";
$mimetypes["image/x-xwindowdump"] => ".xwd";
$mimetypes["application/x-compress"] => ".z";
$mimetypes["application/x-zip-compressed"] => ".zip";
```