blob: 99b1c4b7dce153cb9df4a33d185bc5702ee449f7 [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',
ckdarby3b0d1332013-06-06 16:30:23 -040052 'pdf' => array('application/pdf', 'application/force-download', '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'),
vkeranov130b0552013-09-20 17:51:38 +030081 'z' => 'application/x-compress',
Phil Sturgeon39b1c112012-06-04 16:51:14 -050082 'xhtml' => 'application/xhtml+xml',
83 'xht' => 'application/xhtml+xml',
Andrey Andreevd1a075d2012-06-15 23:28:52 +030084 'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed', 'application/s-compressed', 'multipart/x-zip'),
85 'rar' => array('application/x-rar', 'application/rar', 'application/x-rar-compressed'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -050086 'mid' => 'audio/midi',
87 'midi' => 'audio/midi',
88 'mpga' => 'audio/mpeg',
89 'mp2' => 'audio/mpeg',
90 'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'),
91 'aif' => array('audio/x-aiff', 'audio/aiff'),
92 'aiff' => array('audio/x-aiff', 'audio/aiff'),
93 'aifc' => 'audio/x-aiff',
94 'ram' => 'audio/x-pn-realaudio',
95 'rm' => 'audio/x-pn-realaudio',
96 'rpm' => 'audio/x-pn-realaudio-plugin',
97 'ra' => 'audio/x-realaudio',
98 'rv' => 'video/vnd.rn-realvideo',
99 'wav' => array('audio/x-wav', 'audio/wave', 'audio/wav'),
Dmitry Babenko37515172013-10-04 14:46:40 +0300100 '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 -0500101 'gif' => 'image/gif',
102 'jpeg' => array('image/jpeg', 'image/pjpeg'),
103 'jpg' => array('image/jpeg', 'image/pjpeg'),
104 'jpe' => array('image/jpeg', 'image/pjpeg'),
105 'png' => array('image/png', 'image/x-png'),
106 'tiff' => 'image/tiff',
107 'tif' => 'image/tiff',
Andrey Andreev1106c522013-01-21 15:14:04 +0200108 'css' => array('text/css', 'text/plain'),
109 'html' => array('text/html', 'text/plain'),
110 'htm' => array('text/html', 'text/plain'),
111 'shtml' => array('text/html', 'text/plain'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -0500112 'txt' => 'text/plain',
113 'text' => 'text/plain',
114 'log' => array('text/plain', 'text/x-log'),
115 'rtx' => 'text/richtext',
116 'rtf' => 'text/rtf',
Andrey Andreev1106c522013-01-21 15:14:04 +0200117 'xml' => array('application/xml', 'text/xml', 'text/plain'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -0500118 'xsl' => array('application/xml', 'text/xsl', 'text/xml'),
119 'mpeg' => 'video/mpeg',
120 'mpg' => 'video/mpeg',
121 'mpe' => 'video/mpeg',
122 'qt' => 'video/quicktime',
123 'mov' => 'video/quicktime',
124 'avi' => array('video/x-msvideo', 'video/msvideo', 'video/avi', 'application/x-troff-msvideo'),
125 'movie' => 'video/x-sgi-movie',
126 'doc' => array('application/msword', 'application/vnd.ms-office'),
Lasha Krikhelibaad7612013-02-05 02:48:21 -0500127 'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword', 'application/x-zip'),
Alex Bilbie7bd16902012-10-02 09:19:02 +0100128 'dot' => array('application/msword', 'application/vnd.ms-office'),
129 'dotx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword'),
Andrey Andreev381cfd92013-02-28 14:47:42 +0200130 '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 -0500131 'word' => array('application/msword', 'application/octet-stream'),
132 'xl' => 'application/excel',
133 'eml' => 'message/rfc822',
134 'json' => array('application/json', 'text/json'),
135 'pem' => array('application/x-x509-user-cert', 'application/x-pem-file', 'application/octet-stream'),
136 'p10' => array('application/x-pkcs10', 'application/pkcs10'),
137 'p12' => 'application/x-pkcs12',
138 'p7a' => 'application/x-pkcs7-signature',
139 'p7c' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
140 'p7m' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
141 'p7r' => 'application/x-pkcs7-certreqresp',
142 'p7s' => 'application/pkcs7-signature',
143 'crt' => array('application/x-x509-ca-cert', 'application/x-x509-user-cert', 'application/pkix-cert'),
144 'crl' => array('application/pkix-crl', 'application/pkcs-crl'),
145 'der' => 'application/x-x509-ca-cert',
146 'kdb' => 'application/octet-stream',
147 'pgp' => 'application/pgp',
148 'gpg' => 'application/gpg-keys',
149 'sst' => 'application/octet-stream',
150 'csr' => 'application/octet-stream',
151 'rsa' => 'application/x-pkcs7',
152 'cer' => array('application/pkix-cert', 'application/x-x509-ca-cert'),
153 '3g2' => 'video/3gpp2',
154 '3gp' => 'video/3gp',
155 'mp4' => 'video/mp4',
156 'm4a' => 'audio/x-m4a',
157 'f4v' => 'video/mp4',
dontforget14c8def2013-01-27 10:42:56 -0800158 'webm' => 'video/webm',
Phil Sturgeon39b1c112012-06-04 16:51:14 -0500159 'aac' => 'audio/x-acc',
160 'm4u' => 'application/vnd.mpegurl',
161 'm3u' => 'text/plain',
162 'xspf' => 'application/xspf+xml',
163 'vlc' => 'application/videolan',
kaoz70d5c711c2013-01-31 20:54:09 -0500164 'wmv' => array('video/x-ms-wmv', 'video/x-ms-asf'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -0500165 'au' => 'audio/x-au',
166 'ac3' => 'audio/ac3',
167 'flac' => 'audio/x-flac',
168 'ogg' => 'audio/ogg',
169 'kmz' => array('application/vnd.google-earth.kmz', 'application/zip', 'application/x-zip'),
Andrey Andreevb2457b72012-06-07 23:36:56 +0300170 'kml' => array('application/vnd.google-earth.kml+xml', 'application/xml', 'text/xml'),
Andrey Andreevc0f678d2012-10-24 15:14:21 +0300171 'ics' => 'text/calendar',
172 'zsh' => 'text/x-scriptzsh',
173 '7zip' => array('application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'),
174 'cdr' => array('application/cdr', 'application/coreldraw', 'application/x-cdr', 'application/x-coreldraw', 'image/cdr', 'image/x-cdr', 'zz-application/zz-winassoc-cdr'),
175 'wma' => array('audio/x-ms-wma', 'video/x-ms-asf'),
176 'jar' => array('application/java-archive', 'application/x-java-application', 'application/x-jar', 'application/x-compressed')
Phil Sturgeon39b1c112012-06-04 16:51:14 -0500177);
Derek Allard2067d1a2008-11-13 22:59:24 +0000178
Derek Allard2067d1a2008-11-13 22:59:24 +0000179/* End of file mimes.php */
Dmitry Babenko37515172013-10-04 14:46:40 +0300180/* Location: ./application/config/mimes.php */