1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
|
<?php
/**
* Gallery SVN info
* $Id: mime.mapping.php 13580 2006-05-02 10:22:26Z jenst $
*
*
* This file contains a mapping of common file extensions to
* MIME types.
*
* Any unknown file extensions will automatically be mapped to
* 'x-extension/<ext>' where <ext> is the unknown file extension.
*
*/
$mime_extension_map = array(
'arj' => 'application/x-arj',
'asc' => 'text/plain',
'avi' => 'video/x-msvideo',
'bak' => 'application/x-trash',
'bin' => 'application/octet-stream',
'bmp' => 'image/bmp',
'bz' => 'application/x-bzip',
'bz2' => 'application/x-bzip',
'csh' => 'application/x-shellscript',
'css' => 'text/css',
'cssl' => 'text/css',
'csv' => 'text/x-comma-separated-values',
'diff' => 'text/x-patch',
'doc' => 'application/vnd.ms-word',
'dtd' => 'text/x-dtd',
'exe' => 'application/x-ms-dos-executable',
'gif' => 'image/gif',
'gtar' => 'application/x-gtar',
'gz' => 'application/x-gzip',
'htm' => 'text/html',
'html' => 'text/html',
'ics' => 'text/calendar',
'ico' => 'image/x-ico',
'iff' => 'image/x-iff',
'iso' => 'application/x-cd-image',
'jar' => 'application/x-jar',
'jng' => 'image/x-jng',
'jp2' => 'image/jpeg2000',
'jpg' => 'image/jpeg',
'jpe' => 'image/jpeg',
'jpeg' => 'image/jpeg',
'lha' => 'application/x-lha',
'lhz' => 'application/x-lhz',
'log' => 'text/x-log',
'lzh' => 'application/x-lha',
'lzo' => 'application/x-lzop',
'moov' => 'video/quicktime',
'mov' => 'video/quicktime',
'movie' => 'video/x-sgi-movie',
'mp2' => 'video/mpeg',
'mp3' => 'audio/x-mp3',
'mpe' => 'video/mpeg',
'mpeg' => 'video/mpeg',
'mpg' => 'video/mpeg',
'mpga' => 'audio/mpeg',
'nsv' => 'video/x-nsv',
'ogg' => 'application/ogg',
'pdf' => 'application/pdf',
'pem' => 'application/x-x509-ca-cert',
'perl' => 'application/x-perl',
'pgp' => 'application/pgp',
'php' => 'application/x-php',
'php3' => 'application/x-php',
'php4' => 'application/x-php',
'pict' => 'image/x-pict',
'pict1' => 'image/x-pict',
'pict2' => 'image/x-pict',
'pl' => 'application/x-perl',
'pm' => 'application/x-perl',
'png' => 'image/png',
'po' => 'text/x-gettext-translation',
'pot' => 'text/x-gettext-translation-template',
'ppm' => 'image/x-portable-pixmap',
'pps' => 'application/vnd.ms-powerpoint',
'ppt' => 'application/vnd.ms-powerpoint',
'ppz' => 'application/vnd.ms-powerpoint',
'ps' => 'application/postscript',
'ps.gz' => 'application/x-gzpostscript',
'psd' => 'image/x-psd',
'qt' => 'video/quicktime',
'qtvr' => 'video/quicktime',
'ra' => 'audio/x-pn-realaudio',
'ram' => 'audio/x-pn-realaudio',
'rar' => 'application/x-rar',
'rm' => 'audio/x-pn-realaudio',
'rpm' => 'application/x-rpm',
'rss' => 'text/rss',
'rtf' => 'application/rtf',
'rtx' => 'text/richtext',
'scm' => 'text/x-scheme',
'sgm' => 'text/sgml',
'sgml' => 'text/sgml',
'sh' => 'application/x-shellscript',
'shtml' => 'text/html',
'sql' => 'text/x-sql',
'sty' => 'text/x-tex',
'svg' => 'image/svg+xml',
'swf' => 'application/x-shockwave-flash',
't' => 'application/x-troff',
'tar' => 'application/x-tar',
'tar.Z' => 'application/x-tarz',
'tar.bz' => 'application/x-bzip-compressed-tar',
'tar.bz2' => 'application/x-bzip-compressed-tar',
'tar.gz' => 'application/x-compressed-tar',
'tar.lzo' => 'application/x-tzo',
'tcl' => 'text/x-tcl',
'tex' => 'text/x-tex',
'texi' => 'text/x-texinfo',
'texinfo' => 'text/x-texinfo',
'tgz' => 'application/x-compressed-tar',
'theme' => 'application/x-theme',
'tif' => 'image/tiff',
'tiff' => 'image/tiff',
'tk' => 'text/x-tcl',
'torrent' => 'application/x-bittorrent',
'ttf' => 'application/x-font-ttf',
'txt' => 'text/plain',
'uri' => 'text/x-uri',
'url' => 'text/x-uri',
'vcf' => 'text/x-vcalendar',
'vcs' => 'text/x-vcalendar',
'vct' => 'text/x-vcard',
'vfb' => 'text/calendar',
'vob' => 'video/mpeg',
'wav' => 'audio/x-wav',
'wmf' => 'image/x-wmf',
'wml' => 'text/vnd.wap.wml',
'xla' => 'application/vnd.ms-excel',
'xlc' => 'application/vnd.ms-excel',
'xld' => 'application/vnd.ms-excel',
'xll' => 'application/vnd.ms-excel',
'xlm' => 'application/vnd.ms-excel',
'xls' => 'application/vnd.ms-excel',
'xlt' => 'application/vnd.ms-excel',
'xlw' => 'application/vnd.ms-excel',
'xm' => 'audio/x-mod',
'xmi' => 'text/x-xmi',
'xml' => 'text/xml',
'xul' => 'application/vnd.mozilla.xul+xml',
'z' => 'application/x-compress',
'zip' => 'application/zip',
'zoo' => 'application/x-zoo',
);
|