blob: d3b5311c7a615fcf76796bb0047b09193683c79c [file] [log] [blame]
darwineld8bef8a2014-02-11 20:13:22 +01001<?php
Derek Jonesf4a4bd82011-10-20 12:18:42 -05002/**
3 * CodeIgniter
4 *
Phil Sturgeon07c1ac82012-03-09 17:03:37 +00005 * An open source application development framework for PHP 5.2.4 or newer
Derek Jonesf4a4bd82011-10-20 12:18:42 -05006 *
Andrey Andreevbdb96ca2014-10-28 00:13:31 +02007 * This content is released under the MIT License (MIT)
Andrey Andreev7c9766a2012-01-03 10:18:41 +02008 *
Andrey Andreevbdb96ca2014-10-28 00:13:31 +02009 * Copyright (c) 2014, British Columbia Institute of Technology
Andrey Andreev7c9766a2012-01-03 10:18:41 +020010 *
Andrey Andreevbdb96ca2014-10-28 00:13:31 +020011 * Permission is hereby granted, free of charge, to any person obtaining a copy
12 * of this software and associated documentation files (the "Software"), to deal
13 * in the Software without restriction, including without limitation the rights
14 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15 * copies of the Software, and to permit persons to whom the Software is
16 * furnished to do so, subject to the following conditions:
Derek Jonesf4a4bd82011-10-20 12:18:42 -050017 *
Andrey Andreevbdb96ca2014-10-28 00:13:31 +020018 * The above copyright notice and this permission notice shall be included in
19 * all copies or substantial portions of the Software.
20 *
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
27 * THE SOFTWARE.
28 *
29 * @package CodeIgniter
30 * @author EllisLab Dev Team
darwinel871754a2014-02-11 17:34:57 +010031 * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/)
Andrey Andreevbdb96ca2014-10-28 00:13:31 +020032 * @copyright Copyright (c) 2014, British Columbia Institute of Technology (http://bcit.ca/)
33 * @license http://opensource.org/licenses/MIT MIT License
34 * @link http://codeigniter.com
35 * @since Version 1.0.0
Derek Jonesf4a4bd82011-10-20 12:18:42 -050036 * @filesource
37 */
darwineld8bef8a2014-02-11 20:13:22 +010038defined('BASEPATH') OR exit('No direct script access allowed');
Derek Jonesf4a4bd82011-10-20 12:18:42 -050039
Derek Allard2067d1a2008-11-13 22:59:24 +000040/*
41| -------------------------------------------------------------------
42| MIME TYPES
43| -------------------------------------------------------------------
Derek Jones4b9c6292011-07-01 17:40:48 -050044| This file contains an array of mime types. It is used by the
Derek Allard2067d1a2008-11-13 22:59:24 +000045| Upload class to help identify allowed file types.
46|
47*/
48
Phil Sturgeon39b1c112012-06-04 16:51:14 -050049return array(
50 'hqx' => array('application/mac-binhex40', 'application/mac-binhex', 'application/x-binhex40', 'application/x-mac-binhex40'),
51 'cpt' => 'application/mac-compactpro',
Andrey Andreev3c135222012-07-23 16:54:48 +030052 'csv' => array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'application/x-csv', 'text/x-csv', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel', 'text/plain'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -050053 'bin' => array('application/macbinary', 'application/mac-binary', 'application/octet-stream', 'application/x-binary', 'application/x-macbinary'),
54 'dms' => 'application/octet-stream',
55 'lha' => 'application/octet-stream',
56 'lzh' => 'application/octet-stream',
57 'exe' => array('application/octet-stream', 'application/x-msdownload'),
58 'class' => 'application/octet-stream',
kaoz70d5c711c2013-01-31 20:54:09 -050059 'psd' => array('application/x-photoshop', 'image/vnd.adobe.photoshop'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -050060 'so' => 'application/octet-stream',
61 'sea' => 'application/octet-stream',
62 'dll' => 'application/octet-stream',
63 'oda' => 'application/oda',
ckdarby3b0d1332013-06-06 16:30:23 -040064 'pdf' => array('application/pdf', 'application/force-download', 'application/x-download', 'binary/octet-stream'),
kaoz70d5c711c2013-01-31 20:54:09 -050065 'ai' => array('application/pdf', 'application/postscript'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -050066 'eps' => 'application/postscript',
67 'ps' => 'application/postscript',
68 'smi' => 'application/smil',
69 'smil' => 'application/smil',
70 'mif' => 'application/vnd.mif',
Ollie Rattue8b4869a2012-08-15 11:43:52 -050071 'xls' => array('application/vnd.ms-excel', 'application/msexcel', 'application/x-msexcel', 'application/x-ms-excel', 'application/x-excel', 'application/x-dos_ms_excel', 'application/xls', 'application/x-xls', 'application/excel', 'application/download', 'application/vnd.ms-office', 'application/msword'),
Sean Fahey905c1f32014-06-03 13:46:05 -050072 'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint', 'application/vnd.ms-office', 'application/msword'),
Andrey Andreev381cfd92013-02-28 14:47:42 +020073 'pptx' => array('application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/x-zip', 'application/zip'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -050074 'wbxml' => 'application/wbxml',
75 'wmlc' => 'application/wmlc',
76 'dcr' => 'application/x-director',
77 'dir' => 'application/x-director',
78 'dxr' => 'application/x-director',
79 'dvi' => 'application/x-dvi',
80 'gtar' => 'application/x-gtar',
81 'gz' => 'application/x-gzip',
82 'gzip' => 'application/x-gzip',
Andrey Andreevd1a075d2012-06-15 23:28:52 +030083 'php' => array('application/x-httpd-php', 'application/php', 'application/x-php', 'text/php', 'text/x-php', 'application/x-httpd-php-source'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -050084 'php4' => 'application/x-httpd-php',
85 'php3' => 'application/x-httpd-php',
86 'phtml' => 'application/x-httpd-php',
87 'phps' => 'application/x-httpd-php-source',
Andrey Andreev1106c522013-01-21 15:14:04 +020088 'js' => array('application/x-javascript', 'text/plain'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -050089 'swf' => 'application/x-shockwave-flash',
90 'sit' => 'application/x-stuffit',
91 'tar' => 'application/x-tar',
92 'tgz' => array('application/x-tar', 'application/x-gzip-compressed'),
vkeranov130b0552013-09-20 17:51:38 +030093 'z' => 'application/x-compress',
Phil Sturgeon39b1c112012-06-04 16:51:14 -050094 'xhtml' => 'application/xhtml+xml',
95 'xht' => 'application/xhtml+xml',
Andrey Andreevd1a075d2012-06-15 23:28:52 +030096 'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed', 'application/s-compressed', 'multipart/x-zip'),
97 'rar' => array('application/x-rar', 'application/rar', 'application/x-rar-compressed'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -050098 'mid' => 'audio/midi',
99 'midi' => 'audio/midi',
100 'mpga' => 'audio/mpeg',
101 'mp2' => 'audio/mpeg',
102 'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'),
103 'aif' => array('audio/x-aiff', 'audio/aiff'),
104 'aiff' => array('audio/x-aiff', 'audio/aiff'),
105 'aifc' => 'audio/x-aiff',
106 'ram' => 'audio/x-pn-realaudio',
107 'rm' => 'audio/x-pn-realaudio',
108 'rpm' => 'audio/x-pn-realaudio-plugin',
109 'ra' => 'audio/x-realaudio',
110 'rv' => 'video/vnd.rn-realvideo',
111 'wav' => array('audio/x-wav', 'audio/wave', 'audio/wav'),
Dmitry Babenko37515172013-10-04 14:46:40 +0300112 'bmp' => array('image/bmp', 'image/x-bmp', 'image/x-bitmap', 'image/x-xbitmap', 'image/x-win-bitmap', 'image/x-windows-bmp', 'image/ms-bmp', 'image/x-ms-bmp', 'application/bmp', 'application/x-bmp', 'application/x-win-bitmap'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -0500113 'gif' => 'image/gif',
114 'jpeg' => array('image/jpeg', 'image/pjpeg'),
115 'jpg' => array('image/jpeg', 'image/pjpeg'),
116 'jpe' => array('image/jpeg', 'image/pjpeg'),
117 'png' => array('image/png', 'image/x-png'),
118 'tiff' => 'image/tiff',
119 'tif' => 'image/tiff',
Andrey Andreev1106c522013-01-21 15:14:04 +0200120 'css' => array('text/css', 'text/plain'),
121 'html' => array('text/html', 'text/plain'),
122 'htm' => array('text/html', 'text/plain'),
123 'shtml' => array('text/html', 'text/plain'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -0500124 'txt' => 'text/plain',
125 'text' => 'text/plain',
126 'log' => array('text/plain', 'text/x-log'),
127 'rtx' => 'text/richtext',
128 'rtf' => 'text/rtf',
Andrey Andreev1106c522013-01-21 15:14:04 +0200129 'xml' => array('application/xml', 'text/xml', 'text/plain'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -0500130 'xsl' => array('application/xml', 'text/xsl', 'text/xml'),
131 'mpeg' => 'video/mpeg',
132 'mpg' => 'video/mpeg',
133 'mpe' => 'video/mpeg',
134 'qt' => 'video/quicktime',
135 'mov' => 'video/quicktime',
136 'avi' => array('video/x-msvideo', 'video/msvideo', 'video/avi', 'application/x-troff-msvideo'),
137 'movie' => 'video/x-sgi-movie',
138 'doc' => array('application/msword', 'application/vnd.ms-office'),
Lasha Krikhelibaad7612013-02-05 02:48:21 -0500139 'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword', 'application/x-zip'),
Alex Bilbie7bd16902012-10-02 09:19:02 +0100140 'dot' => array('application/msword', 'application/vnd.ms-office'),
141 'dotx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword'),
Andrey Andreev381cfd92013-02-28 14:47:42 +0200142 'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip', 'application/vnd.ms-excel', 'application/msword', 'application/x-zip'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -0500143 'word' => array('application/msword', 'application/octet-stream'),
144 'xl' => 'application/excel',
145 'eml' => 'message/rfc822',
146 'json' => array('application/json', 'text/json'),
147 'pem' => array('application/x-x509-user-cert', 'application/x-pem-file', 'application/octet-stream'),
148 'p10' => array('application/x-pkcs10', 'application/pkcs10'),
149 'p12' => 'application/x-pkcs12',
150 'p7a' => 'application/x-pkcs7-signature',
151 'p7c' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
152 'p7m' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
153 'p7r' => 'application/x-pkcs7-certreqresp',
154 'p7s' => 'application/pkcs7-signature',
155 'crt' => array('application/x-x509-ca-cert', 'application/x-x509-user-cert', 'application/pkix-cert'),
156 'crl' => array('application/pkix-crl', 'application/pkcs-crl'),
157 'der' => 'application/x-x509-ca-cert',
158 'kdb' => 'application/octet-stream',
159 'pgp' => 'application/pgp',
160 'gpg' => 'application/gpg-keys',
161 'sst' => 'application/octet-stream',
162 'csr' => 'application/octet-stream',
163 'rsa' => 'application/x-pkcs7',
164 'cer' => array('application/pkix-cert', 'application/x-x509-ca-cert'),
165 '3g2' => 'video/3gpp2',
166 '3gp' => 'video/3gp',
167 'mp4' => 'video/mp4',
168 'm4a' => 'audio/x-m4a',
169 'f4v' => 'video/mp4',
dontforget14c8def2013-01-27 10:42:56 -0800170 'webm' => 'video/webm',
Phil Sturgeon39b1c112012-06-04 16:51:14 -0500171 'aac' => 'audio/x-acc',
172 'm4u' => 'application/vnd.mpegurl',
173 'm3u' => 'text/plain',
174 'xspf' => 'application/xspf+xml',
175 'vlc' => 'application/videolan',
kaoz70d5c711c2013-01-31 20:54:09 -0500176 'wmv' => array('video/x-ms-wmv', 'video/x-ms-asf'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -0500177 'au' => 'audio/x-au',
178 'ac3' => 'audio/ac3',
179 'flac' => 'audio/x-flac',
180 'ogg' => 'audio/ogg',
181 'kmz' => array('application/vnd.google-earth.kmz', 'application/zip', 'application/x-zip'),
Andrey Andreevb2457b72012-06-07 23:36:56 +0300182 'kml' => array('application/vnd.google-earth.kml+xml', 'application/xml', 'text/xml'),
Andrey Andreevc0f678d2012-10-24 15:14:21 +0300183 'ics' => 'text/calendar',
Andre Gardiner811e5522014-10-21 17:13:18 -0500184 'ical' => 'text/calendar',
Andrey Andreevc0f678d2012-10-24 15:14:21 +0300185 'zsh' => 'text/x-scriptzsh',
186 '7zip' => array('application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'),
187 'cdr' => array('application/cdr', 'application/coreldraw', 'application/x-cdr', 'application/x-coreldraw', 'image/cdr', 'image/x-cdr', 'zz-application/zz-winassoc-cdr'),
188 'wma' => array('audio/x-ms-wma', 'video/x-ms-asf'),
Andrey Andreev03eeb362014-09-08 11:35:52 +0300189 'jar' => array('application/java-archive', 'application/x-java-application', 'application/x-jar', 'application/x-compressed'),
Ahmad Anbar4b738822014-09-11 16:34:24 +0300190 'svg' => array('image/svg+xml', 'application/xml', 'text/xml'),
191 'vcf' => 'text/x-vcard'
Phil Sturgeon39b1c112012-06-04 16:51:14 -0500192);
Derek Allard2067d1a2008-11-13 22:59:24 +0000193
Derek Allard2067d1a2008-11-13 22:59:24 +0000194/* End of file mimes.php */
Andrey Andreev2b2288d2014-10-22 23:30:44 +0300195/* Location: ./application/config/mimes.php */