blob: 6ff381279b9503915d401f9d08769b4f6c5a5862 [file] [log] [blame]
Andrey Andreev7c9766a2012-01-03 10:18:41 +02001<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
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
Andrey Andreev80500af2013-01-01 08:16:53 +020021 * @copyright Copyright (c) 2008 - 2013, 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 */
27
Derek Allard2067d1a2008-11-13 22:59:24 +000028/*
29| -------------------------------------------------------------------
30| MIME TYPES
31| -------------------------------------------------------------------
Derek Jones4b9c6292011-07-01 17:40:48 -050032| This file contains an array of mime types. It is used by the
Derek Allard2067d1a2008-11-13 22:59:24 +000033| Upload class to help identify allowed file types.
34|
35*/
36
Phil Sturgeon39b1c112012-06-04 16:51:14 -050037return array(
38 'hqx' => array('application/mac-binhex40', 'application/mac-binhex', 'application/x-binhex40', 'application/x-mac-binhex40'),
39 'cpt' => 'application/mac-compactpro',
Andrey Andreev3c135222012-07-23 16:54:48 +030040 '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 -050041 'bin' => array('application/macbinary', 'application/mac-binary', 'application/octet-stream', 'application/x-binary', 'application/x-macbinary'),
42 'dms' => 'application/octet-stream',
43 'lha' => 'application/octet-stream',
44 'lzh' => 'application/octet-stream',
45 'exe' => array('application/octet-stream', 'application/x-msdownload'),
46 'class' => 'application/octet-stream',
kaoz70d5c711c2013-01-31 20:54:09 -050047 'psd' => array('application/x-photoshop', 'image/vnd.adobe.photoshop'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -050048 'so' => 'application/octet-stream',
49 'sea' => 'application/octet-stream',
50 'dll' => 'application/octet-stream',
51 'oda' => 'application/oda',
Alex Bilbie50f78342012-10-02 08:56:43 +010052 'pdf' => array('application/pdf', 'application/x-download', 'binary/octet-stream'),
kaoz70d5c711c2013-01-31 20:54:09 -050053 'ai' => array('application/pdf', 'application/postscript'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -050054 'eps' => 'application/postscript',
55 'ps' => 'application/postscript',
56 'smi' => 'application/smil',
57 'smil' => 'application/smil',
58 'mif' => 'application/vnd.mif',
Ollie Rattue8b4869a2012-08-15 11:43:52 -050059 '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'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -050060 'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint'),
Andrey Andreev381cfd92013-02-28 14:47:42 +020061 'pptx' => array('application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/x-zip', 'application/zip'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -050062 'wbxml' => 'application/wbxml',
63 'wmlc' => 'application/wmlc',
64 'dcr' => 'application/x-director',
65 'dir' => 'application/x-director',
66 'dxr' => 'application/x-director',
67 'dvi' => 'application/x-dvi',
68 'gtar' => 'application/x-gtar',
69 'gz' => 'application/x-gzip',
70 'gzip' => 'application/x-gzip',
Andrey Andreevd1a075d2012-06-15 23:28:52 +030071 '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 -050072 'php4' => 'application/x-httpd-php',
73 'php3' => 'application/x-httpd-php',
74 'phtml' => 'application/x-httpd-php',
75 'phps' => 'application/x-httpd-php-source',
Andrey Andreev1106c522013-01-21 15:14:04 +020076 'js' => array('application/x-javascript', 'text/plain'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -050077 'swf' => 'application/x-shockwave-flash',
78 'sit' => 'application/x-stuffit',
79 'tar' => 'application/x-tar',
80 'tgz' => array('application/x-tar', 'application/x-gzip-compressed'),
81 'xhtml' => 'application/xhtml+xml',
82 'xht' => 'application/xhtml+xml',
Andrey Andreevd1a075d2012-06-15 23:28:52 +030083 'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed', 'application/s-compressed', 'multipart/x-zip'),
84 'rar' => array('application/x-rar', 'application/rar', 'application/x-rar-compressed'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -050085 'mid' => 'audio/midi',
86 'midi' => 'audio/midi',
87 'mpga' => 'audio/mpeg',
88 'mp2' => 'audio/mpeg',
89 'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'),
90 'aif' => array('audio/x-aiff', 'audio/aiff'),
91 'aiff' => array('audio/x-aiff', 'audio/aiff'),
92 'aifc' => 'audio/x-aiff',
93 'ram' => 'audio/x-pn-realaudio',
94 'rm' => 'audio/x-pn-realaudio',
95 'rpm' => 'audio/x-pn-realaudio-plugin',
96 'ra' => 'audio/x-realaudio',
97 'rv' => 'video/vnd.rn-realvideo',
98 'wav' => array('audio/x-wav', 'audio/wave', 'audio/wav'),
99 'bmp' => array('image/bmp', 'image/x-windows-bmp'),
100 'gif' => 'image/gif',
101 'jpeg' => array('image/jpeg', 'image/pjpeg'),
102 'jpg' => array('image/jpeg', 'image/pjpeg'),
103 'jpe' => array('image/jpeg', 'image/pjpeg'),
104 'png' => array('image/png', 'image/x-png'),
105 'tiff' => 'image/tiff',
106 'tif' => 'image/tiff',
Andrey Andreev1106c522013-01-21 15:14:04 +0200107 'css' => array('text/css', 'text/plain'),
108 'html' => array('text/html', 'text/plain'),
109 'htm' => array('text/html', 'text/plain'),
110 'shtml' => array('text/html', 'text/plain'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -0500111 'txt' => 'text/plain',
112 'text' => 'text/plain',
113 'log' => array('text/plain', 'text/x-log'),
114 'rtx' => 'text/richtext',
115 'rtf' => 'text/rtf',
Andrey Andreev1106c522013-01-21 15:14:04 +0200116 'xml' => array('application/xml', 'text/xml', 'text/plain'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -0500117 'xsl' => array('application/xml', 'text/xsl', 'text/xml'),
118 'mpeg' => 'video/mpeg',
119 'mpg' => 'video/mpeg',
120 'mpe' => 'video/mpeg',
121 'qt' => 'video/quicktime',
122 'mov' => 'video/quicktime',
123 'avi' => array('video/x-msvideo', 'video/msvideo', 'video/avi', 'application/x-troff-msvideo'),
124 'movie' => 'video/x-sgi-movie',
125 'doc' => array('application/msword', 'application/vnd.ms-office'),
Lasha Krikhelibaad7612013-02-05 02:48:21 -0500126 'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword', 'application/x-zip'),
Alex Bilbie7bd16902012-10-02 09:19:02 +0100127 'dot' => array('application/msword', 'application/vnd.ms-office'),
128 'dotx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword'),
Andrey Andreev381cfd92013-02-28 14:47:42 +0200129 '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 -0500130 'word' => array('application/msword', 'application/octet-stream'),
131 'xl' => 'application/excel',
132 'eml' => 'message/rfc822',
133 'json' => array('application/json', 'text/json'),
134 'pem' => array('application/x-x509-user-cert', 'application/x-pem-file', 'application/octet-stream'),
135 'p10' => array('application/x-pkcs10', 'application/pkcs10'),
136 'p12' => 'application/x-pkcs12',
137 'p7a' => 'application/x-pkcs7-signature',
138 'p7c' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
139 'p7m' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
140 'p7r' => 'application/x-pkcs7-certreqresp',
141 'p7s' => 'application/pkcs7-signature',
142 'crt' => array('application/x-x509-ca-cert', 'application/x-x509-user-cert', 'application/pkix-cert'),
143 'crl' => array('application/pkix-crl', 'application/pkcs-crl'),
144 'der' => 'application/x-x509-ca-cert',
145 'kdb' => 'application/octet-stream',
146 'pgp' => 'application/pgp',
147 'gpg' => 'application/gpg-keys',
148 'sst' => 'application/octet-stream',
149 'csr' => 'application/octet-stream',
150 'rsa' => 'application/x-pkcs7',
151 'cer' => array('application/pkix-cert', 'application/x-x509-ca-cert'),
152 '3g2' => 'video/3gpp2',
153 '3gp' => 'video/3gp',
154 'mp4' => 'video/mp4',
155 'm4a' => 'audio/x-m4a',
156 'f4v' => 'video/mp4',
dontforget14c8def2013-01-27 10:42:56 -0800157 'webm' => 'video/webm',
Phil Sturgeon39b1c112012-06-04 16:51:14 -0500158 'aac' => 'audio/x-acc',
159 'm4u' => 'application/vnd.mpegurl',
160 'm3u' => 'text/plain',
161 'xspf' => 'application/xspf+xml',
162 'vlc' => 'application/videolan',
kaoz70d5c711c2013-01-31 20:54:09 -0500163 'wmv' => array('video/x-ms-wmv', 'video/x-ms-asf'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -0500164 'au' => 'audio/x-au',
165 'ac3' => 'audio/ac3',
166 'flac' => 'audio/x-flac',
167 'ogg' => 'audio/ogg',
168 'kmz' => array('application/vnd.google-earth.kmz', 'application/zip', 'application/x-zip'),
Andrey Andreevb2457b72012-06-07 23:36:56 +0300169 'kml' => array('application/vnd.google-earth.kml+xml', 'application/xml', 'text/xml'),
Andrey Andreevc0f678d2012-10-24 15:14:21 +0300170 'ics' => 'text/calendar',
171 'zsh' => 'text/x-scriptzsh',
172 '7zip' => array('application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'),
173 'cdr' => array('application/cdr', 'application/coreldraw', 'application/x-cdr', 'application/x-coreldraw', 'image/cdr', 'image/x-cdr', 'zz-application/zz-winassoc-cdr'),
174 'wma' => array('audio/x-ms-wma', 'video/x-ms-asf'),
175 'jar' => array('application/java-archive', 'application/x-java-application', 'application/x-jar', 'application/x-compressed')
Phil Sturgeon39b1c112012-06-04 16:51:14 -0500176);
Derek Allard2067d1a2008-11-13 22:59:24 +0000177
Derek Allard2067d1a2008-11-13 22:59:24 +0000178/* End of file mimes.php */
Andrey Andreev870f1132013-02-08 22:06:00 +0200179/* Location: ./application/config/mimes.php */