Last active
April 6, 2018 12:50
-
-
Save laudirbispo/b827717c3a975e5d89a677d8f4aa5b3c to your computer and use it in GitHub Desktop.
Extensões de arquivos e seus MIMES TYPES -
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php declare(strict_types=1); | |
| $mimes = require_once('mime_types.php'); | |
| /** | |
| * Verifique se o tipo MIME é válido de acordo com a extensão | |
| * | |
| * @param $mimes (array) - Lista de MIMES e extensões | |
| * @param $ext (string) - Extensão do arquivo sem o ponto - exemplo "jpg" | |
| * @param $type (string) - MIME Type para comparação - exemplo 'image/jpg', 'image/jpeg' | |
| * @return bool - Verdadeiro se for igual | |
| */ | |
| function checkMime (array $mimes, string $ext, string $type) : bool | |
| { | |
| if (empty($ext) || empty($type)) | |
| return false; | |
| if (isset($mimes[$ext])) | |
| { | |
| if (is_array($mimes[$ext])) | |
| return (in_array($type, $mimes[$ext])); | |
| else | |
| return ($mimes[$ext] === $type); | |
| } | |
| return false; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php declare(strict_types=1); | |
| return array( | |
| '3dm' => 'x-world/x-3dmf', | |
| '3dmf' => 'x-world/x-3dmf', | |
| 'a' => 'application/octet-stream', | |
| 'aab' => 'application/x-authorware-bin', | |
| 'aam' => 'application/x-authorware-map', | |
| 'aas' => 'application/x-authorware-seg', | |
| 'abc' => 'text/vnd.abc', | |
| 'acgi' => 'text/html', | |
| 'afl' => 'video/animaflex', | |
| 'ai' => 'application/postscript', | |
| 'aif' => array('audio/aiff', 'audio/x-aiff'), | |
| 'aifc' => array('audio/aiff', 'audio/x-aiff'), | |
| 'aiff' => array('audio/aiff', 'audio/x-aiff'), | |
| 'aim' => 'application/x-aim', | |
| 'aip' => 'text/x-audiosoft-intra', | |
| 'ani' => 'application/x-navi-animation', | |
| 'aos' => 'application/x-nokia-9000-communicator-add-on-software', | |
| 'aps' => 'application/mime', | |
| 'arc' => 'application/octet-stream', | |
| 'arj' => array('application/arj', 'application/octet-stream'), | |
| 'art' => 'image/x-jg', | |
| 'asf' => 'video/x-ms-asf', | |
| 'asm' => 'text/x-asm', | |
| 'asp' => 'text/asp', | |
| 'asx' => array('application/x-mplayer2', 'video/x-ms-asf', 'video/x-ms-asf-plugin'), | |
| 'au' => array('audio/basic', 'audio/x-au'), | |
| 'avi' => array('application/x-troff-msvideo', 'video/x-msvideo', 'video/avi', 'video/msvideo'), | |
| 'avs' => 'video/avs-video', | |
| 'bcpio' => 'application/x-bcpio', | |
| 'bin' => array('application/mac-binary', 'application/x-macbinary', 'application/macbinary', 'application/octet-stream', 'application/x-binary'), | |
| 'bm' => 'image/bmp', | |
| 'bmp' => array('image/bmp', 'image/x-windows-bmp'), | |
| 'boo' => 'application/book', | |
| 'book' => 'application/book', | |
| 'boz' => 'application/x-bzip2', | |
| 'bsh' => 'application/x-bsh', | |
| 'bz' => 'application/x-bzip', | |
| 'bz2' => 'application/x-bzip2', | |
| 'c' => 'text/plain', | |
| 'c++' => 'text/plain', | |
| 'cat' => 'application/vnd.ms-pki.seccat', | |
| 'cc' => array('text/plain', 'text/x-c'), | |
| 'ccad' => 'application/clariscad', | |
| 'cco' => 'application/x-cocoa', | |
| 'cdf' => array('application/cdf', 'application/x-netcdf', 'application/x-cdf'), | |
| 'cer' => array('application/pkix-cert', 'application/x-x509-ca-cert'), | |
| 'cha' => 'application/x-chat', | |
| 'chat' => 'application/x-chat', | |
| 'class' => array('application/java', 'application/x-java-class', 'application/java-byte-code'), | |
| 'com' => array('application/octet-stream', 'text/plain'), | |
| 'conf' => 'text/plain', | |
| 'cpio' => 'application/x-cpio', | |
| 'cpp' => 'text/x-c', | |
| 'cpt' => array('application/mac-compactpro', 'application/x-cpt', 'application/x-compactpro'), | |
| 'crl' => array('application/pkcs-crl', 'application/pkix-crl'), | |
| 'crt' => array('application/x-x509-ca-cert', 'application/x-x509-user-cert', 'application/pkix-cert'), | |
| 'csh' => array('application/x-csh', 'text/x-script.csh'), | |
| 'css' => array('application/x-pointplus', 'text/css'), | |
| 'cxx' => 'text/plain', | |
| 'dcr' => 'application/x-director', | |
| 'deepv' => 'application/x-deepv', | |
| 'def' => array('text/plain', 'application/x-x509-ca-cert'), | |
| 'dif' => 'video/x-dv', | |
| 'dir' => 'application/x-director', | |
| 'dl' => array('video/dl', 'video/x-dl'), | |
| 'doc' => 'application/msword', | |
| 'docm' => 'application/vnd.ms-word.document.macroEnabled.12', | |
| 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', | |
| 'dot' => 'application/msword', | |
| 'dotm' => 'application/vnd.ms-word.template.macroEnabled.12', | |
| 'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', | |
| 'dp' => 'application/commonground', | |
| 'drw' => 'application/drafting', | |
| 'dump' => 'application/octet-stream', | |
| 'dv' => 'video/x-dv', | |
| 'dvi' => 'application/x-dvi', | |
| 'dwf' => array('drawing/x-dwf (old)', 'model/vnd.dwf'), | |
| 'dwg' => array('application/acad', 'image/vnd.dwg', 'image/x-dwg'), | |
| 'dxf' => array('application/dxf', 'image/x-dwg', 'image/vnd.dwg'), | |
| 'dxr' => 'application/x-director', | |
| 'el' => 'text/x-script.elisp', | |
| 'elc' => array('application/x-bytecode.elisp (compiled elisp)', 'application/x-elc'), | |
| 'env' => 'application/x-envoy', | |
| 'eps' => 'application/postscript', | |
| 'es' => 'application/x-esrehber', | |
| 'etx' => 'text/x-setext', | |
| 'evy' => array('application/envoy', 'application/x-envoy'), | |
| 'exe' => 'application/octet-stream', | |
| 'f' => array('text/plain', 'text/x-fortran'), | |
| 'f77' => 'text/x-fortran', | |
| 'f90' => array('text/plain', 'text/x-fortran'), | |
| 'fdf' => 'application/vnd.fdf', | |
| 'fif' => array('application/fractals', 'image/fif'), | |
| 'fli' => array('video/fli', 'video/x-fli'), | |
| 'flo' => 'image/florian', | |
| 'flx' => 'text/vnd.fmi.flexstor', | |
| 'fmf' => 'video/x-atomic3d-feature', | |
| 'for' => array('text/plain', 'text/x-fortran'), | |
| 'fpx' => array('image/vnd.fpx', 'image/vnd.net-fpx'), | |
| 'frl' => 'application/freeloader', | |
| 'funk' => 'audio/make', | |
| 'g' => 'text/plain', | |
| 'g3' => 'image/g3fax', | |
| 'gif' => 'image/gif', | |
| 'gl' => array('video/gl', 'video/x-gl'), | |
| 'gsd' => 'audio/x-gsm', | |
| 'gsm' => 'audio/x-gsm', | |
| 'gsp' => 'application/x-gsp', | |
| 'gss' => 'application/x-gss', | |
| 'gtar' => 'application/x-gtar', | |
| 'gz' => array('application/x-compressed', 'application/x-gzip'), | |
| 'gzip' => array('multipart/x-gzip', 'application/x-gzip'), | |
| 'h' => array('text/plain', 'text/x-h'), | |
| 'hdf' => 'application/x-hdf', | |
| 'help' => 'application/x-helpfile', | |
| 'hgl' => 'application/vnd.hp-hpgl', | |
| 'hh' => array('text/x-h', 'text/plain'), | |
| 'hlb' => 'text/x-script', | |
| 'hlp' => array('application/x-helpfile', 'application/x-winhelp', 'application/hlp'), | |
| 'hpg' => 'application/vnd.hp-hpgl', | |
| 'hpgl' => 'application/vnd.hp-hpgl', | |
| 'hqx' => array('application/binhex', 'application/x-mac-binhex40', 'application/x-binhex40', 'application/mac-binhex40', 'application/mac-binhex', 'application/binhex4'), | |
| 'hta' => 'application/hta', | |
| 'htc' => 'text/x-component', | |
| 'htm' => 'text/html', | |
| 'html' => 'text/html', | |
| 'htmls' => 'text/html', | |
| 'htt' => 'text/webviewhtml', | |
| 'htx' => 'text/html', | |
| 'ice' => 'x-conference/x-cooltalk', | |
| 'ico' => 'image/x-icon', | |
| 'idc' => 'text/plain', | |
| 'ief' => 'image/ief', | |
| 'iefs' => 'image/ief', | |
| 'iges' => array('application/iges', 'model/iges'), | |
| 'igs' => array('application/iges', 'model/iges'), | |
| 'ima' => 'application/x-ima', | |
| 'imap' => 'application/x-httpd-imap', | |
| 'inf' => 'application/inf', | |
| 'ins' => 'application/x-internett-signup', | |
| 'ip' => 'application/x-ip2', | |
| 'isu' => 'video/x-isvideo', | |
| 'it' => 'audio/it', | |
| 'iv' => 'application/x-inventor', | |
| 'ivr' => 'i-world/i-vrml', | |
| 'ivy' => 'application/x-livescreen', | |
| 'jam' => 'audio/x-jam', | |
| 'jav' => array('text/plain', 'text/x-java-source'), | |
| 'java' => array('text/plain', 'text/x-java-source'), | |
| 'jcm' => 'application/x-java-commerce', | |
| 'jfif' => array('image/jpeg', 'image/pjpeg'), | |
| 'jfif-tbnl' => 'image/jpeg', | |
| 'jpe' => array('image/jpeg', 'image/pjpeg'), | |
| 'jpeg' => array('image/jpeg', 'image/pjpeg'), | |
| 'jpg' => array('image/jpeg','image/pjpeg'), | |
| 'jps' => 'image/x-jps', | |
| 'js' => 'application/x-javascript', | |
| 'jut' => 'image/jutvision', | |
| 'kar' => array('audio/midi','music/x-karaoke'), | |
| 'ksh' => array('application/x-ksh', 'text/x-script.ksh'), | |
| 'la' => array('audio/nspaudio','audio/x-nspaudio'), | |
| 'lam' => 'audio/x-liveaudio', | |
| 'latex' => 'application/x-latex', | |
| 'lha' => array('application/lha', 'application/x-lha', 'application/octet-stream'), | |
| 'lhx' => 'application/octet-stream', | |
| 'list' => 'text/plain', | |
| 'lma' => array('audio/nspaudio','audio/x-nspaudio'), | |
| 'log' => 'text/plain', | |
| 'lsp' => array('application/x-lisp', 'text/x-script.lisp'), | |
| 'lst' => 'text/plain', | |
| 'lsx' => 'text/x-la-asf', | |
| 'ltx' => 'application/x-latex', | |
| 'lzh' => array('application/octet-stream', 'application/x-lzh'), | |
| 'lzx' => array('application/lzx', 'application/x-lzx', 'application/octet-stream'), | |
| 'm' => array('text/plain', 'text/x-m'), | |
| 'm1v' => 'video/mpeg', | |
| 'm2a' => 'audio/mpeg', | |
| 'm4a' => 'audio/mp4', | |
| 'm2v' => 'video/mpeg', | |
| 'm3u' => 'audio/x-mpequrl', | |
| 'man' => 'application/x-troff-man', | |
| 'map' => 'application/x-navimap', | |
| 'mar' => 'text/plain', | |
| 'mbd' => 'application/mbedlet', | |
| 'mc' => 'application/x-magic-cap-package-1.0', | |
| 'mcd' => array('application/mcad', 'application/x-mathcad'), | |
| 'mcf' => array('image/vasa', 'text/mcf'), | |
| 'mcp' => 'application/netmc', | |
| 'me' => 'application/x-troff-me', | |
| 'mht' => 'message/rfc822', | |
| 'mhtml' => 'message/rfc822', | |
| 'mid' => array('application/x-midi', 'x-music/x-midi', 'music/crescendo', 'audio/x-midi', 'audio/x-mid', 'audio/midi'), | |
| 'midi' => array('application/x-midi', 'x-music/x-midi', 'music/crescendo', 'audio/x-midi', 'audio/x-mid', 'audio/midi'), | |
| 'mif' => array('application/x-frame', 'application/x-mif'), | |
| 'mime' => array('message/rfc822', 'www/mime'), | |
| 'mjf' => 'audio/x-vnd.audioexplosion.mjuicemediafile', | |
| 'mjpg' => 'video/x-motion-jpeg', | |
| 'mm' => array('application/base64', 'application/x-meme'), | |
| 'mme' => 'application/base64', | |
| 'mod' => array('audio/mod', 'audio/x-mod'), | |
| 'moov' => 'video/quicktime', | |
| 'mov' => 'video/quicktime', | |
| 'movie' => 'video/x-sgi-movie', | |
| 'mp2' => array('audio/mpeg', 'video/x-mpeq2a', 'video/x-mpeg', 'video/mpeg', 'audio/x-mpeg'), | |
| 'mp3' => array('audio/mpeg3', 'video/x-mpeg', 'video/mpeg', 'audio/x-mpeg-3'), | |
| 'mpa' => array('audio/mpeg', 'video/mpeg'), | |
| 'mpc' => 'application/x-project', | |
| 'mpe' => 'video/mpeg', | |
| 'mpeg' => 'video/mpeg', | |
| 'mpg' => array('audio/mpeg', 'video/mpeg'), | |
| 'mpga' => 'audio/mpeg', | |
| 'mpp' => 'application/vnd.ms-project', | |
| 'mpt' => 'application/x-project', | |
| 'mpv' => 'application/x-project', | |
| 'mpx' => 'application/x-project', | |
| 'mrc' => 'application/marc', | |
| 'ms' => 'application/x-troff-ms', | |
| 'mv' => 'video/x-sgi-movie', | |
| 'my' => 'audio/make', | |
| 'mzz' => 'application/x-vnd.audioexplosion.mzz', | |
| 'nap' => 'image/naplps', | |
| 'naplps' => 'image/naplps', | |
| 'nc' => 'application/x-netcdf', | |
| 'ncm' => 'application/vnd.nokia.configuration-message', | |
| 'nif' => 'image/x-niff', | |
| 'niff' => 'image/x-niff', | |
| 'nix' => 'application/x-mix-transfer', | |
| 'nsc' => 'application/x-conference', | |
| 'nvd' => 'application/x-navidoc', | |
| 'o' => 'application/octet-stream', | |
| 'oda' => 'application/oda', | |
| 'omc' => 'application/x-omc', | |
| 'omcd' => 'application/x-omcdatamaker', | |
| 'omcr' => 'application/x-omcregerator', | |
| 'p' => 'text/x-pascal', | |
| 'p10' => array('application/pkcs10', 'application/x-pkcs10'), | |
| 'p12' => array('application/pkcs-12', 'application/x-pkcs12'), | |
| 'p7a' => 'application/x-pkcs7-signature', | |
| 'p7c' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'), | |
| 'p7m' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'), | |
| 'p7r' => 'application/x-pkcs7-certreqresp', | |
| 'p7s' => 'application/pkcs7-signature', | |
| 'part' => 'application/pro_eng', | |
| 'pas' => 'text/pascal', | |
| 'pbm' => 'image/x-portable-bitmap', | |
| 'pcl' => array('application/vnd.hp-pcl', 'application/x-pcl'), | |
| 'pct' => 'image/x-pict', | |
| 'pcx' => 'image/x-pcx', | |
| 'pdb' => 'chemical/x-pdb', | |
| 'pdf' => 'application/pdf', | |
| 'pfunk' => 'audio/make', | |
| 'pgm' => 'image/x-portable-greymap', | |
| 'pic' => 'image/pict', | |
| 'pict' => 'image/pict', | |
| 'pkg' => 'application/x-newton-compatible-pkg', | |
| 'pko' => 'application/vnd.ms-pki.pko', | |
| 'pl' => array('text/plain', 'text/x-script.perl'), | |
| 'plx' => 'application/x-pixclscript', | |
| 'pm' => array('image/x-xpixmap', 'text/x-script.perl-module'), | |
| 'pm4' => 'application/x-pagemaker', | |
| 'pm5' => 'application/x-pagemaker', | |
| 'png' => 'image/png', | |
| 'pnm' => array('application/x-portable-anymap', 'image/x-portable-anymap'), | |
| 'pot' => array('application/mspowerpoint', 'application/vnd.ms-powerpoint'), | |
| 'potm' => 'application/vnd.ms-powerpoint.presentation.macroEnabled.12', | |
| 'potx' => 'application/vnd.openxmlformats-officedocument.presentationml.template', | |
| 'pov' => 'model/x-pov', | |
| 'ppa' => 'application/vnd.ms-powerpoint', | |
| 'ppam' => 'pplication/vnd.ms-powerpoint.addin.macroEnabled.12', | |
| 'ppm' => 'image/x-portable-pixmap', | |
| 'pps' => array('application/mspowerpoint', 'application/vnd.ms-powerpoint'), | |
| 'ppsm' => 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12', | |
| 'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', | |
| 'ppt' => array('application/mspowerpoint', 'application/x-mspowerpoint', 'application/vnd.ms-powerpoint', 'application/powerpoint'), | |
| 'pptm' => 'application/vnd.ms-powerpoint.presentation.macroEnabled.12', | |
| 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', | |
| 'ppz' => 'application/mspowerpoint', | |
| 'pre' => 'application/x-freelance', | |
| 'prt' => 'application/pro_eng', | |
| 'ps' => 'application/postscript', | |
| 'psd' => 'application/octet-stream', | |
| 'pvu' => 'paleovu/x-pv', | |
| 'pwz' => 'application/vnd.ms-powerpoint', | |
| 'py' => 'text/x-script.phyton', | |
| 'pyc' => 'applicaiton/x-bytecode.python', | |
| 'qcp' => 'audio/vnd.qcelp', | |
| 'qd3' => 'x-world/x-3dmf', | |
| 'qd3d' => 'x-world/x-3dmf', | |
| 'qif' => 'image/x-quicktime', | |
| 'qt' => 'video/quicktime', | |
| 'qtc' => 'video/x-qtc', | |
| 'qti' => 'image/x-quicktime', | |
| 'qtif' => 'image/x-quicktime', | |
| 'ra' => array('audio/x-pn-realaudio', 'audio/x-realaudio', 'audio/x-pn-realaudio-plugin'), | |
| 'ram' => 'audio/x-pn-realaudio', | |
| 'ras' => array('application/x-cmu-raster', 'image/x-cmu-raster', 'image/cmu-raster'), | |
| 'rast' => 'image/cmu-raster', | |
| 'rexx' => 'text/x-script.rexx', | |
| 'rf' => 'image/vnd.rn-realflash', | |
| 'rgb' => 'image/x-rgb', | |
| 'rm' => array('application/vnd.rn-realmedia', 'audio/x-pn-realaudio'), | |
| 'rmi' => 'audio/mid', | |
| 'rmm' => 'audio/x-pn-realaudio', | |
| 'rmp' => array('audio/x-pn-realaudio', 'audio/x-pn-realaudio-plugin'), | |
| 'rng' => array('application/ringing-tones', 'application/vnd.nokia.ringing-tone'), | |
| 'rnx' => 'application/vnd.rn-realplayer', | |
| 'roff' => 'application/x-troff', | |
| 'rp' => 'image/vnd.rn-realpix', | |
| 'rpm' => 'audio/x-pn-realaudio-plugin', | |
| 'rt' => array('text/richtext', 'text/vnd.rn-realtext'), | |
| 'rtf' => array('application/rtf', 'text/richtext', 'application/x-rtf'), | |
| 'rtx' => array('application/rtf', 'text/richtext'), | |
| 'rv' => 'video/vnd.rn-realvideo', | |
| 's' => 'text/x-asm', | |
| 's3m' => 'audio/s3m', | |
| 'saveme' => 'aapplication/octet-stream', | |
| 'sbk' => 'application/x-tbook', | |
| 'scm' => array('application/x-lotusscreencam', 'video/x-scm', 'text/x-script.guile', 'text/x-script.scheme'), | |
| 'sdml' => 'text/plain', | |
| 'sdp' => array('application/sdp', 'application/x-sdp'), | |
| 'sdr' => 'application/sounder', | |
| 'sea' => array('application/sea', 'application/x-sea'), | |
| 'set' => 'application/set', | |
| 'sgm' => array('text/sgml', 'text/x-sgml'), | |
| 'sgml' => array('text/sgml', 'text/x-sgml'), | |
| 'sh' => array('application/x-bsh', 'text/x-script.sh', 'application/x-sh', 'application/x-shar'), | |
| 'shar' => array('application/x-bsh', 'application/x-shar'), | |
| 'shtml' => array('text/html', 'text/x-server-parsed-html'), | |
| 'sid' => 'audio/x-psid', | |
| 'sit' => array('application/x-sit', 'application/x-stuffit'), | |
| 'skd' => 'application/x-koan', | |
| 'skm' => 'application/x-koan', | |
| 'skp' => 'application/x-koan', | |
| 'skt' => 'application/x-koan', | |
| 'sl' => 'application/x-seelogo', | |
| 'smi' => 'application/smil', | |
| 'smil' => 'application/smil', | |
| 'snd' => array('audio/basic', 'audio/x-adpcm'), | |
| 'sol' => 'application/solids', | |
| 'spc' => array('application/x-pkcs7-certificates', 'text/x-speech'), | |
| 'spl' => 'application/futuresplash', | |
| 'spr' => 'application/x-sprite', | |
| 'sprite' => 'application/x-sprite', | |
| 'src' => 'application/x-wais-source', | |
| 'ssi' => 'text/x-server-parsed-html', | |
| 'ssm' => 'application/streamingmedia', | |
| 'sst' => 'application/vnd.ms-pki.certstore', | |
| 'step' => 'application/step', | |
| 'stl' => array('application/sla', 'application/x-navistyle', 'application/vnd.ms-pki.stl'), | |
| 'stp' => 'application/step', | |
| 'sv4cpio' =>'application/x-sv4cpio', | |
| 'sv4crc' => 'application/x-sv4crc', | |
| 'svf' => array('image/vnd.dwg', 'image/x-dwg'), | |
| 'svr' => array('application/x-world', 'x-world/x-svr'), | |
| 'swf' => 'application/x-shockwave-flash', | |
| 't' => 'application/x-troff', | |
| 'talk' => 'text/x-speech', | |
| 'tar' => 'application/x-tar', | |
| 'tbk' => array('application/toolbook', 'application/x-tbook'), | |
| 'tcl' => array('application/x-tcl', 'text/x-script.tcl'), | |
| 'tcsh' => 'text/x-script.tcsh', | |
| 'tex' => 'application/x-tex', | |
| 'texi' => 'application/x-texinfo', | |
| 'texinfo' =>' lication/x-texinfo', | |
| 'text' => array('application/plain', 'text/plain'), | |
| 'tgz' => array('application/gnutar', 'application/x-compressed'), | |
| 'tif' => array('image/tiff', 'image/x-tiff'), | |
| 'tiff' => array('image/tiff', 'image/x-tiff'), | |
| 'tr' => 'application/x-troff', | |
| 'tsi' => 'audio/tsp-audio', | |
| 'tsp' => array('application/dsptype', 'audio/tsplayer'), | |
| 'tsv' => 'text/tab-separated-values', | |
| 'turbot' => 'image/florian', | |
| 'txt' => 'text/plain', | |
| 'uil' => 'text/x-uil', | |
| 'uni' => 'text/uri-list', | |
| 'unis' => 'text/uri-list', | |
| 'unv' => 'application/i-deas', | |
| 'uri' => 'text/uri-list', | |
| 'uris' => 'text/uri-list', | |
| 'ustar' => array('application/x-ustar', 'multipart/x-ustar'), | |
| 'uu' => array('application/octet-stream', 'text/x-uuencode'), | |
| 'uue' => 'text/x-uuencode', | |
| 'vcd' => 'application/x-cdlink', | |
| 'vcs' => 'text/x-vcalendar', | |
| 'vda' => 'application/vda', | |
| 'vdo' => 'video/vdo', | |
| 'vew' => 'application/groupwise', | |
| 'viv' => array('video/vivo', 'video/vnd.vivo'), | |
| 'vivo' => array('video/vivo', 'video/vnd.vivo'), | |
| 'vmd' => 'application/vocaltec-media-desc', | |
| 'vmf' => 'application/vocaltec-media-file', | |
| 'voc' => array('audio/voc', 'audio/x-voc'), | |
| 'vos' => 'video/vosaic', | |
| 'vox' => 'audio/voxware', | |
| 'vqe' => 'audio/x-twinvq-plugin', | |
| 'vqf' => 'audio/x-twinvq', | |
| 'vql' => 'audio/x-twinvq-plugin', | |
| 'vrml' => array('application/x-vrml', 'x-world/x-vrml', 'model/vrml'), | |
| 'vrt' => 'x-world/x-vrt', | |
| 'vsd' => 'application/x-visio', | |
| 'vst' => 'application/x-visio', | |
| 'vsw' => 'application/x-visio', | |
| 'w60' => 'application/wordperfect6.0', | |
| 'w61' => 'application/wordperfect6.1', | |
| 'w6w' => 'application/msword', | |
| 'wav' => array('audio/wav', 'audio/x-wav'), | |
| 'wb1' => 'application/x-qpro', | |
| 'wbmp' => 'image/vnd.wap.wbmp', | |
| 'web' => 'application/vnd.xara', | |
| 'wiz' => 'application/msword', | |
| 'wk1' => 'application/x-123', | |
| 'wmf' => 'windows/metafile', | |
| 'wml' => 'text/vnd.wap.wml', | |
| 'wmlc' => 'application/vnd.wap.wmlc', | |
| 'wmls' => 'text/vnd.wap.wmlscript', | |
| 'wmlsc' => 'application/vnd.wap.wmlscriptc', | |
| 'word' => 'application/msword', | |
| 'wp' => 'application/wordperfect', | |
| 'wp5' => array('application/wordperfect', 'application/wordperfect6.0'), | |
| 'wp6' => 'application/wordperfect', | |
| 'wpd' => array('application/wordperfect', 'application/x-wpwin'), | |
| 'wq1' => 'application/x-lotus', | |
| 'wri' => array('application/mswrite', 'application/x-wri'), | |
| 'wrl' => array('application/x-world', 'x-world/x-vrml', 'model/vrml'), | |
| 'wrz' => array('model/vrml', 'x-world/x-vrml'), | |
| 'wsc' => 'text/scriplet', | |
| 'wsrc' => 'application/x-wais-source', | |
| 'wtk' => 'application/x-wintalk', | |
| 'xbm' => array('image/x-xbitmap', 'image/xbm', 'image/x-xbm'), | |
| 'xdr' => 'video/x-amt-demorun', | |
| 'xgz' => 'xgl/drawing', | |
| 'xif' => 'image/vnd.xiff', | |
| 'xl' => 'application/excel', | |
| 'xla' => array('application/excel', 'application/x-msexcel', 'application/x-excel'), | |
| 'xlb' => array('application/excel', 'application/x-excel', 'application/vnd.ms-excel'), | |
| 'xlc' => array('application/excel', 'application/x-excel', 'application/vnd.ms-excel'), | |
| 'xld' => array('application/excel', 'application/x-excel'), | |
| 'xlk' => array('application/excel', 'application/x-excel'), | |
| 'xll' => array('application/excel', 'application/x-excel', 'application/vnd.ms-excel'), | |
| 'xlm' => array('application/excel', 'application/x-excel', 'application/vnd.ms-excel'), | |
| 'xls' => array('application/excel', 'application/x-msexcel', 'application/vnd.ms-excel', 'application/x-excel'), | |
| 'xlt' => array('application/excel', 'application/x-excel'), | |
| 'xlv' => array('application/excel', 'application/x-excel'), | |
| 'xlw' => array('application/excel', 'application/x-msexcel', 'application/vnd.ms-excel', 'application/x-excel'), | |
| 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', | |
| 'xltx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.template', 'application/vnd.openxmlformats-officedocument.spreadsheetml.template'), | |
| 'xlsm' => 'application/vnd.ms-excel.sheet.macroEnabled.12', | |
| 'xltm' => 'application/vnd.ms-excel.template.macroEnabled.12', | |
| 'xlam' => 'application/vnd.ms-excel.addin.macroEnabled.12', | |
| 'xlsb' => 'application/vnd.ms-excel.sheet.binary.macroEnabled.12', | |
| 'xm' => 'audio/xm', | |
| 'xml' => array('application/xml', 'text/xml'), | |
| 'xmz' => 'xgl/movie', | |
| 'xpix' => 'application/x-vnd.ls-xpix', | |
| 'xpm' => array('image/x-xpixmap','image/xpm'), | |
| 'x-png' => 'image/png', | |
| 'xsr' => 'video/x-amt-showrun', | |
| 'xwd' => array('image/x-xwd', 'image/x-xwindowdump'), | |
| 'xyz' => 'chemical/x-pdb', | |
| 'z' => array('application/x-compress', 'application/x-compressed'), | |
| 'zip' => array('application/x-compressed', 'multipart/x-zip', 'application/x-zip-compressed', 'application/zip'), | |
| 'zoo' => 'application/octet-stream', | |
| 'zsh' => 'text/x-script.zsh)', | |
| 'acx' => 'application/internet-property-stream', | |
| 'dms' => 'application/octet-stream', | |
| 'axs' => 'application/olescript', | |
| 'prf' => 'application/pics-rules', | |
| 'setpay' => 'application/set-payment-initiation', | |
| 'setreg' => 'application/set-registration-initiation', | |
| 'msg' => 'application/vnd.ms-outlook', | |
| 'wcm' => 'application/vnd.ms-works', | |
| 'wdb' => 'application/vnd.ms-works', | |
| 'wks' => 'application/vnd.ms-works', | |
| 'wps' => 'application/vnd.ms-works', | |
| 'isp' => 'application/x-internet-signup', | |
| 'iii' => 'application/x-iphone', | |
| 'mdb' => 'application/x-msaccess', | |
| 'crd' => 'application/x-mscardfile', | |
| 'clp' => 'application/x-msclip', | |
| 'm13' => 'application/x-msmediaview', | |
| 'm14' => 'application/x-msmediaview', | |
| 'mvb' => 'application/x-msmediaview', | |
| 'mny' => 'application/x-msmoney', | |
| 'pub' => 'application/x-mspublisher', | |
| 'scd' => 'application/x-msschedule', | |
| 'trm' => 'application/x-msterminal', | |
| 'pma' => 'application/x-perfmon', | |
| 'pmc' => 'application/x-perfmon', | |
| 'pml' => 'application/x-perfmon', | |
| 'pmr' => 'application/x-perfmon', | |
| 'pmw' => 'application/x-perfmon', | |
| 'pfx' => 'application/x-pkcs12', | |
| 'p7b' => 'application/x-pkcs7-certificates', | |
| 'cod' => 'image/cis-cod', | |
| 'cmx' => 'image/x-cmx', | |
| 'nws' => 'message/rfc822', | |
| '323' => 'text/h323', | |
| 'stm' => 'text/html', | |
| 'uls' => 'text/iuls', | |
| 'bas' => 'ext/plain', | |
| 'sct' => 'text/scriptlet', | |
| 'vcf' => 'ext/x-vcard', | |
| 'mpv2' => 'video/mpeg', | |
| 'lsf' => 'video/x-la-asf', | |
| 'asr' => 'video/x-ms-asf', | |
| 'flr' => 'x-world/x-vrml', | |
| 'xaf' => 'x-world/x-vrml', | |
| 'xof' => 'x-world/x-vrml', | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment