blob: e2079b90e87ff9ade7e4e623cec81f3e3350a3c9 [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 *
7 * NOTICE OF LICENSE
Andrey Andreev7c9766a2012-01-03 10:18:41 +02008 *
Derek Jonesf4a4bd82011-10-20 12:18:42 -05009 * Licensed under the Academic Free License version 3.0
Andrey Andreev7c9766a2012-01-03 10:18:41 +020010 *
Derek Jones61df9062011-10-21 09:55:40 -050011 * This source file is subject to the Academic Free License (AFL 3.0) that is
Derek Jonesf4a4bd82011-10-20 12:18:42 -050012 * bundled with this package in the files license_afl.txt / license_afl.rst.
13 * It is also available through the world wide web at this URL:
14 * http://opensource.org/licenses/AFL-3.0
15 * If you did not receive a copy of the license and are unable to obtain it
16 * through the world wide web, please send an email to
17 * licensing@ellislab.com so we can send you a copy immediately.
18 *
19 * @package CodeIgniter
20 * @author EllisLab Dev Team
darwinel871754a2014-02-11 17:34:57 +010021 * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/)
Derek Jonesf4a4bd82011-10-20 12:18:42 -050022 * @license http://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0)
23 * @link http://codeigniter.com
24 * @since Version 1.0
25 * @filesource
26 */
darwineld8bef8a2014-02-11 20:13:22 +010027defined('BASEPATH') OR exit('No direct script access allowed');
Derek Jonesf4a4bd82011-10-20 12:18:42 -050028
Derek Allard2067d1a2008-11-13 22:59:24 +000029/*
30| -------------------------------------------------------------------
31| MIME TYPES
32| -------------------------------------------------------------------
Derek Jones4b9c6292011-07-01 17:40:48 -050033| This file contains an array of mime types. It is used by the
Derek Allard2067d1a2008-11-13 22:59:24 +000034| Upload class to help identify allowed file types.
35|
36*/
37
Phil Sturgeon39b1c112012-06-04 16:51:14 -050038return array(
39 'hqx' => array('application/mac-binhex40', 'application/mac-binhex', 'application/x-binhex40', 'application/x-mac-binhex40'),
40 'cpt' => 'application/mac-compactpro',
Andrey Andreev3c135222012-07-23 16:54:48 +030041 '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 -050042 'bin' => array('application/macbinary', 'application/mac-binary', 'application/octet-stream', 'application/x-binary', 'application/x-macbinary'),
43 'dms' => 'application/octet-stream',
44 'lha' => 'application/octet-stream',
45 'lzh' => 'application/octet-stream',
46 'exe' => array('application/octet-stream', 'application/x-msdownload'),
47 'class' => 'application/octet-stream',
kaoz70d5c711c2013-01-31 20:54:09 -050048 'psd' => array('application/x-photoshop', 'image/vnd.adobe.photoshop'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -050049 'so' => 'application/octet-stream',
50 'sea' => 'application/octet-stream',
51 'dll' => 'application/octet-stream',
52 'oda' => 'application/oda',
ckdarby3b0d1332013-06-06 16:30:23 -040053 'pdf' => array('application/pdf', 'application/force-download', 'application/x-download', 'binary/octet-stream'),
kaoz70d5c711c2013-01-31 20:54:09 -050054 'ai' => array('application/pdf', 'application/postscript'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -050055 'eps' => 'application/postscript',
56 'ps' => 'application/postscript',
57 'smi' => 'application/smil',
58 'smil' => 'application/smil',
59 'mif' => 'application/vnd.mif',
Ollie Rattue8b4869a2012-08-15 11:43:52 -050060 '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 -050061 'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint', 'application/vnd.ms-office', 'application/msword'),
Andrey Andreev381cfd92013-02-28 14:47:42 +020062 'pptx' => array('application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/x-zip', 'application/zip'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -050063 'wbxml' => 'application/wbxml',
64 'wmlc' => 'application/wmlc',
65 'dcr' => 'application/x-director',
66 'dir' => 'application/x-director',
67 'dxr' => 'application/x-director',
68 'dvi' => 'application/x-dvi',
69 'gtar' => 'application/x-gtar',
70 'gz' => 'application/x-gzip',
71 'gzip' => 'application/x-gzip',
Andrey Andreevd1a075d2012-06-15 23:28:52 +030072 '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 -050073 'php4' => 'application/x-httpd-php',
74 'php3' => 'application/x-httpd-php',
75 'phtml' => 'application/x-httpd-php',
76 'phps' => 'application/x-httpd-php-source',
Andrey Andreev1106c522013-01-21 15:14:04 +020077 'js' => array('application/x-javascript', 'text/plain'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -050078 'swf' => 'application/x-shockwave-flash',
79 'sit' => 'application/x-stuffit',
80 'tar' => 'application/x-tar',
81 'tgz' => array('application/x-tar', 'application/x-gzip-compressed'),
vkeranov130b0552013-09-20 17:51:38 +030082 'z' => 'application/x-compress',
Phil Sturgeon39b1c112012-06-04 16:51:14 -050083 'xhtml' => 'application/xhtml+xml',
84 'xht' => 'application/xhtml+xml',
Andrey Andreevd1a075d2012-06-15 23:28:52 +030085 'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed', 'application/s-compressed', 'multipart/x-zip'),
86 'rar' => array('application/x-rar', 'application/rar', 'application/x-rar-compressed'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -050087 'mid' => 'audio/midi',
88 'midi' => 'audio/midi',
89 'mpga' => 'audio/mpeg',
90 'mp2' => 'audio/mpeg',
91 'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'),
92 'aif' => array('audio/x-aiff', 'audio/aiff'),
93 'aiff' => array('audio/x-aiff', 'audio/aiff'),
94 'aifc' => 'audio/x-aiff',
95 'ram' => 'audio/x-pn-realaudio',
96 'rm' => 'audio/x-pn-realaudio',
97 'rpm' => 'audio/x-pn-realaudio-plugin',
98 'ra' => 'audio/x-realaudio',
99 'rv' => 'video/vnd.rn-realvideo',
100 'wav' => array('audio/x-wav', 'audio/wave', 'audio/wav'),
Dmitry Babenko37515172013-10-04 14:46:40 +0300101 '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 -0500102 'gif' => 'image/gif',
103 'jpeg' => array('image/jpeg', 'image/pjpeg'),
104 'jpg' => array('image/jpeg', 'image/pjpeg'),
105 'jpe' => array('image/jpeg', 'image/pjpeg'),
106 'png' => array('image/png', 'image/x-png'),
107 'tiff' => 'image/tiff',
108 'tif' => 'image/tiff',
Andrey Andreev1106c522013-01-21 15:14:04 +0200109 'css' => array('text/css', 'text/plain'),
110 'html' => array('text/html', 'text/plain'),
111 'htm' => array('text/html', 'text/plain'),
112 'shtml' => array('text/html', 'text/plain'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -0500113 'txt' => 'text/plain',
114 'text' => 'text/plain',
115 'log' => array('text/plain', 'text/x-log'),
116 'rtx' => 'text/richtext',
117 'rtf' => 'text/rtf',
Andrey Andreev1106c522013-01-21 15:14:04 +0200118 'xml' => array('application/xml', 'text/xml', 'text/plain'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -0500119 'xsl' => array('application/xml', 'text/xsl', 'text/xml'),
120 'mpeg' => 'video/mpeg',
121 'mpg' => 'video/mpeg',
122 'mpe' => 'video/mpeg',
123 'qt' => 'video/quicktime',
124 'mov' => 'video/quicktime',
125 'avi' => array('video/x-msvideo', 'video/msvideo', 'video/avi', 'application/x-troff-msvideo'),
126 'movie' => 'video/x-sgi-movie',
127 'doc' => array('application/msword', 'application/vnd.ms-office'),
Lasha Krikhelibaad7612013-02-05 02:48:21 -0500128 'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword', 'application/x-zip'),
Alex Bilbie7bd16902012-10-02 09:19:02 +0100129 'dot' => array('application/msword', 'application/vnd.ms-office'),
130 'dotx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword'),
Andrey Andreev381cfd92013-02-28 14:47:42 +0200131 '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 -0500132 'word' => array('application/msword', 'application/octet-stream'),
133 'xl' => 'application/excel',
134 'eml' => 'message/rfc822',
135 'json' => array('application/json', 'text/json'),
136 'pem' => array('application/x-x509-user-cert', 'application/x-pem-file', 'application/octet-stream'),
137 'p10' => array('application/x-pkcs10', 'application/pkcs10'),
138 'p12' => 'application/x-pkcs12',
139 'p7a' => 'application/x-pkcs7-signature',
140 'p7c' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
141 'p7m' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
142 'p7r' => 'application/x-pkcs7-certreqresp',
143 'p7s' => 'application/pkcs7-signature',
144 'crt' => array('application/x-x509-ca-cert', 'application/x-x509-user-cert', 'application/pkix-cert'),
145 'crl' => array('application/pkix-crl', 'application/pkcs-crl'),
146 'der' => 'application/x-x509-ca-cert',
147 'kdb' => 'application/octet-stream',
148 'pgp' => 'application/pgp',
149 'gpg' => 'application/gpg-keys',
150 'sst' => 'application/octet-stream',
151 'csr' => 'application/octet-stream',
152 'rsa' => 'application/x-pkcs7',
153 'cer' => array('application/pkix-cert', 'application/x-x509-ca-cert'),
154 '3g2' => 'video/3gpp2',
155 '3gp' => 'video/3gp',
156 'mp4' => 'video/mp4',
157 'm4a' => 'audio/x-m4a',
158 'f4v' => 'video/mp4',
dontforget14c8def2013-01-27 10:42:56 -0800159 'webm' => 'video/webm',
Phil Sturgeon39b1c112012-06-04 16:51:14 -0500160 'aac' => 'audio/x-acc',
161 'm4u' => 'application/vnd.mpegurl',
162 'm3u' => 'text/plain',
163 'xspf' => 'application/xspf+xml',
164 'vlc' => 'application/videolan',
kaoz70d5c711c2013-01-31 20:54:09 -0500165 'wmv' => array('video/x-ms-wmv', 'video/x-ms-asf'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -0500166 'au' => 'audio/x-au',
167 'ac3' => 'audio/ac3',
168 'flac' => 'audio/x-flac',
169 'ogg' => 'audio/ogg',
170 'kmz' => array('application/vnd.google-earth.kmz', 'application/zip', 'application/x-zip'),
Andrey Andreevb2457b72012-06-07 23:36:56 +0300171 'kml' => array('application/vnd.google-earth.kml+xml', 'application/xml', 'text/xml'),
Andrey Andreevc0f678d2012-10-24 15:14:21 +0300172 'ics' => 'text/calendar',
Andre Gardiner811e5522014-10-21 17:13:18 -0500173 'ical' => 'text/calendar',
Andrey Andreevc0f678d2012-10-24 15:14:21 +0300174 'zsh' => 'text/x-scriptzsh',
175 '7zip' => array('application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'),
176 'cdr' => array('application/cdr', 'application/coreldraw', 'application/x-cdr', 'application/x-coreldraw', 'image/cdr', 'image/x-cdr', 'zz-application/zz-winassoc-cdr'),
177 'wma' => array('audio/x-ms-wma', 'video/x-ms-asf'),
Andrey Andreev03eeb362014-09-08 11:35:52 +0300178 'jar' => array('application/java-archive', 'application/x-java-application', 'application/x-jar', 'application/x-compressed'),
Ahmad Anbar4b738822014-09-11 16:34:24 +0300179 'svg' => array('image/svg+xml', 'application/xml', 'text/xml'),
180 'vcf' => 'text/x-vcard'
Phil Sturgeon39b1c112012-06-04 16:51:14 -0500181);
Derek Allard2067d1a2008-11-13 22:59:24 +0000182
Derek Allard2067d1a2008-11-13 22:59:24 +0000183/* End of file mimes.php */
Andrey Andreev2b2288d2014-10-22 23:30:44 +0300184/* Location: ./application/config/mimes.php */