1 <?php
defined('SYSPATH') or die('No direct script access.');
3 * A list of mime types. Our list is generally more complete and accurate than
4 * the operating system MIME list.
6 * If there are any missing options, please create a ticket on our issue tracker,
7 * http://kohanaphp.com/trac/newticket. Be sure to give the filename and
8 * expected MIME type, as well as any additional information you can provide.
12 '323' => array('text/h323'),
13 '7z' => array('application/x-7z-compressed'),
14 'abw' => array('application/x-abiword'),
15 'acx' => array('application/internet-property-stream'),
16 'ai' => array('application/postscript'),
17 'aif' => array('audio/x-aiff'),
18 'aifc' => array('audio/x-aiff'),
19 'aiff' => array('audio/x-aiff'),
20 'amf' => array('application/x-amf'),
21 'asf' => array('video/x-ms-asf'),
22 'asr' => array('video/x-ms-asf'),
23 'asx' => array('video/x-ms-asf'),
24 'atom' => array('application/atom+xml'),
25 'avi' => array('video/avi', 'video/msvideo', 'video/x-msvideo'),
26 'bin' => array('application/octet-stream','application/macbinary'),
27 'bmp' => array('image/bmp'),
28 'c' => array('text/x-csrc'),
29 'c++' => array('text/x-c++src'),
30 'cab' => array('application/x-cab'),
31 'cc' => array('text/x-c++src'),
32 'cda' => array('application/x-cdf'),
33 'class' => array('application/octet-stream'),
34 'cpp' => array('text/x-c++src'),
35 'cpt' => array('application/mac-compactpro'),
36 'csh' => array('text/x-csh'),
37 'css' => array('text/css'),
38 'csv' => array('text/x-comma-separated-values', 'application/vnd.ms-excel', 'text/comma-separated-values', 'text/csv'),
39 'dbk' => array('application/docbook+xml'),
40 'dcr' => array('application/x-director'),
41 'deb' => array('application/x-debian-package'),
42 'diff' => array('text/x-diff'),
43 'dir' => array('application/x-director'),
44 'divx' => array('video/divx'),
45 'dll' => array('application/octet-stream', 'application/x-msdos-program'),
46 'dmg' => array('application/x-apple-diskimage'),
47 'dms' => array('application/octet-stream'),
48 'doc' => array('application/msword'),
49 'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document'),
50 'dvi' => array('application/x-dvi'),
51 'dxr' => array('application/x-director'),
52 'eml' => array('message/rfc822'),
53 'eps' => array('application/postscript'),
54 'evy' => array('application/envoy'),
55 'exe' => array('application/x-msdos-program', 'application/octet-stream'),
56 'fla' => array('application/octet-stream'),
57 'flac' => array('application/x-flac'),
58 'flc' => array('video/flc'),
59 'fli' => array('video/fli'),
60 'flv' => array('video/x-flv'),
61 'gif' => array('image/gif'),
62 'gtar' => array('application/x-gtar'),
63 'gz' => array('application/x-gzip'),
64 'h' => array('text/x-chdr'),
65 'h++' => array('text/x-c++hdr'),
66 'hh' => array('text/x-c++hdr'),
67 'hpp' => array('text/x-c++hdr'),
68 'hqx' => array('application/mac-binhex40'),
69 'hs' => array('text/x-haskell'),
70 'htm' => array('text/html'),
71 'html' => array('text/html'),
72 'ico' => array('image/x-icon'),
73 'ics' => array('text/calendar'),
74 'iii' => array('application/x-iphone'),
75 'ins' => array('application/x-internet-signup'),
76 'iso' => array('application/x-iso9660-image'),
77 'isp' => array('application/x-internet-signup'),
78 'jar' => array('application/java-archive'),
79 'java' => array('application/x-java-applet'),
80 'jpe' => array('image/jpeg', 'image/pjpeg'),
81 'jpeg' => array('image/jpeg', 'image/pjpeg'),
82 'jpg' => array('image/jpeg', 'image/pjpeg'),
83 'js' => array('application/x-javascript'),
84 'json' => array('application/json'),
85 'latex' => array('application/x-latex'),
86 'lha' => array('application/octet-stream'),
87 'log' => array('text/plain', 'text/x-log'),
88 'lzh' => array('application/octet-stream'),
89 'm4a' => array('audio/mpeg'),
90 'm4p' => array('video/mp4v-es'),
91 'm4v' => array('video/mp4'),
92 'man' => array('application/x-troff-man'),
93 'mdb' => array('application/x-msaccess'),
94 'midi' => array('audio/midi'),
95 'mid' => array('audio/midi'),
96 'mif' => array('application/vnd.mif'),
97 'mka' => array('audio/x-matroska'),
98 'mkv' => array('video/x-matroska'),
99 'mov' => array('video/quicktime'),
100 'movie' => array('video/x-sgi-movie'),
101 'mp2' => array('audio/mpeg'),
102 'mp3' => array('audio/mpeg'),
103 'mp4' => array('application/mp4','audio/mp4','video/mp4'),
104 'mpa' => array('video/mpeg'),
105 'mpe' => array('video/mpeg'),
106 'mpeg' => array('video/mpeg'),
107 'mpg' => array('video/mpeg'),
108 'mpg4' => array('video/mp4'),
109 'mpga' => array('audio/mpeg'),
110 'mpp' => array('application/vnd.ms-project'),
111 'mpv' => array('video/x-matroska'),
112 'mpv2' => array('video/mpeg'),
113 'ms' => array('application/x-troff-ms'),
114 'msg' => array('application/msoutlook','application/x-msg'),
115 'msi' => array('application/x-msi'),
116 'nws' => array('message/rfc822'),
117 'oda' => array('application/oda'),
118 'odb' => array('application/vnd.oasis.opendocument.database'),
119 'odc' => array('application/vnd.oasis.opendocument.chart'),
120 'odf' => array('application/vnd.oasis.opendocument.forumla'),
121 'odg' => array('application/vnd.oasis.opendocument.graphics'),
122 'odi' => array('application/vnd.oasis.opendocument.image'),
123 'odm' => array('application/vnd.oasis.opendocument.text-master'),
124 'odp' => array('application/vnd.oasis.opendocument.presentation'),
125 'ods' => array('application/vnd.oasis.opendocument.spreadsheet'),
126 'odt' => array('application/vnd.oasis.opendocument.text'),
127 'oga' => array('audio/ogg'),
128 'ogg' => array('application/ogg'),
129 'ogv' => array('video/ogg'),
130 'otg' => array('application/vnd.oasis.opendocument.graphics-template'),
131 'oth' => array('application/vnd.oasis.opendocument.web'),
132 'otp' => array('application/vnd.oasis.opendocument.presentation-template'),
133 'ots' => array('application/vnd.oasis.opendocument.spreadsheet-template'),
134 'ott' => array('application/vnd.oasis.opendocument.template'),
135 'p' => array('text/x-pascal'),
136 'pas' => array('text/x-pascal'),
137 'patch' => array('text/x-diff'),
138 'pbm' => array('image/x-portable-bitmap'),
139 'pdf' => array('application/pdf', 'application/x-download'),
140 'php' => array('application/x-httpd-php'),
141 'php3' => array('application/x-httpd-php'),
142 'php4' => array('application/x-httpd-php'),
143 'php5' => array('application/x-httpd-php'),
144 'phps' => array('application/x-httpd-php-source'),
145 'phtml' => array('application/x-httpd-php'),
146 'pl' => array('text/x-perl'),
147 'pm' => array('text/x-perl'),
148 'png' => array('image/png', 'image/x-png'),
149 'po' => array('text/x-gettext-translation'),
150 'pot' => array('application/vnd.ms-powerpoint'),
151 'pps' => array('application/vnd.ms-powerpoint'),
152 'ppt' => array('application/powerpoint'),
153 'pptx' => array('application/vnd.openxmlformats-officedocument.presentationml.presentation'),
154 'ps' => array('application/postscript'),
155 'psd' => array('application/x-photoshop', 'image/x-photoshop'),
156 'pub' => array('application/x-mspublisher'),
157 'py' => array('text/x-python'),
158 'qt' => array('video/quicktime'),
159 'ra' => array('audio/x-realaudio'),
160 'ram' => array('audio/x-realaudio', 'audio/x-pn-realaudio'),
161 'rar' => array('application/rar'),
162 'rgb' => array('image/x-rgb'),
163 'rm' => array('audio/x-pn-realaudio'),
164 'rpm' => array('audio/x-pn-realaudio-plugin', 'application/x-redhat-package-manager'),
165 'rss' => array('application/rss+xml'),
166 'rtf' => array('text/rtf'),
167 'rtx' => array('text/richtext'),
168 'rv' => array('video/vnd.rn-realvideo'),
169 'sea' => array('application/octet-stream'),
170 'sh' => array('text/x-sh'),
171 'shtml' => array('text/html'),
172 'sit' => array('application/x-stuffit'),
173 'smi' => array('application/smil'),
174 'smil' => array('application/smil'),
175 'so' => array('application/octet-stream'),
176 'src' => array('application/x-wais-source'),
177 'svg' => array('image/svg+xml'),
178 'swf' => array('application/x-shockwave-flash'),
179 't' => array('application/x-troff'),
180 'tar' => array('application/x-tar'),
181 'tcl' => array('text/x-tcl'),
182 'tex' => array('application/x-tex'),
183 'text' => array('text/plain'),
184 'texti' => array('application/x-texinfo'),
185 'textinfo' => array('application/x-texinfo'),
186 'tgz' => array('application/x-tar'),
187 'tif' => array('image/tiff'),
188 'tiff' => array('image/tiff'),
189 'torrent' => array('application/x-bittorrent'),
190 'tr' => array('application/x-troff'),
191 'tsv' => array('text/tab-separated-values'),
192 'txt' => array('text/plain'),
193 'wav' => array('audio/x-wav'),
194 'wax' => array('audio/x-ms-wax'),
195 'wbxml' => array('application/wbxml'),
196 'wm' => array('video/x-ms-wm'),
197 'wma' => array('audio/x-ms-wma'),
198 'wmd' => array('application/x-ms-wmd'),
199 'wmlc' => array('application/wmlc'),
200 'wmv' => array('video/x-ms-wmv', 'application/octet-stream'),
201 'wmx' => array('video/x-ms-wmx'),
202 'wmz' => array('application/x-ms-wmz'),
203 'word' => array('application/msword', 'application/octet-stream'),
204 'wp5' => array('application/wordperfect5.1'),
205 'wpd' => array('application/vnd.wordperfect'),
206 'wvx' => array('video/x-ms-wvx'),
207 'xbm' => array('image/x-xbitmap'),
208 'xcf' => array('image/xcf'),
209 'xhtml' => array('application/xhtml+xml'),
210 'xht' => array('application/xhtml+xml'),
211 'xl' => array('application/excel', 'application/vnd.ms-excel'),
212 'xla' => array('application/excel', 'application/vnd.ms-excel'),
213 'xlc' => array('application/excel', 'application/vnd.ms-excel'),
214 'xlm' => array('application/excel', 'application/vnd.ms-excel'),
215 'xls' => array('application/excel', 'application/vnd.ms-excel'),
216 'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'),
217 'xlt' => array('application/excel', 'application/vnd.ms-excel'),
218 'xml' => array('text/xml', 'application/xml'),
219 'xof' => array('x-world/x-vrml'),
220 'xpm' => array('image/x-xpixmap'),
221 'xsl' => array('text/xml'),
222 'xvid' => array('video/x-xvid'),
223 'xwd' => array('image/x-xwindowdump'),
224 'z' => array('application/x-compress'),
225 'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed')