blob: 6cc1ae9efff526686e387f65b520b974a043544b [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
Greg Aker0defe5d2012-01-01 18:46:41 -060021 * @copyright Copyright (c) 2008 - 2012, 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',
47 'psd' => 'application/x-photoshop',
48 'so' => 'application/octet-stream',
49 'sea' => 'application/octet-stream',
50 'dll' => 'application/octet-stream',
51 'oda' => 'application/oda',
52 'pdf' => array('application/pdf', 'application/x-download'),
53 'ai' => 'application/postscript',
54 'eps' => 'application/postscript',
55 'ps' => 'application/postscript',
56 'smi' => 'application/smil',
57 'smil' => 'application/smil',
58 'mif' => 'application/vnd.mif',
Ollie Rattueb5ecafe2012-08-15 00:11:43 -050059 'xls' => array('application/vnd.ms-excel', 'application/vnd.ms-excel [official]', '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'),
61 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
62 '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',
76 'js' => 'application/x-javascript',
77 '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',
107 'css' => 'text/css',
108 'html' => 'text/html',
109 'htm' => 'text/html',
110 'shtml' => 'text/html',
111 'txt' => 'text/plain',
112 'text' => 'text/plain',
113 'log' => array('text/plain', 'text/x-log'),
114 'rtx' => 'text/richtext',
115 'rtf' => 'text/rtf',
116 'xml' => array('application/xml', 'text/xml'),
117 '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'),
126 'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip'),
Ollie Rattueb5ecafe2012-08-15 00:11:43 -0500127 'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip', 'application/vnd.ms-excel', 'application/msword'),
Phil Sturgeon39b1c112012-06-04 16:51:14 -0500128 'word' => array('application/msword', 'application/octet-stream'),
129 'xl' => 'application/excel',
130 'eml' => 'message/rfc822',
131 'json' => array('application/json', 'text/json'),
132 'pem' => array('application/x-x509-user-cert', 'application/x-pem-file', 'application/octet-stream'),
133 'p10' => array('application/x-pkcs10', 'application/pkcs10'),
134 'p12' => 'application/x-pkcs12',
135 'p7a' => 'application/x-pkcs7-signature',
136 'p7c' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
137 'p7m' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
138 'p7r' => 'application/x-pkcs7-certreqresp',
139 'p7s' => 'application/pkcs7-signature',
140 'crt' => array('application/x-x509-ca-cert', 'application/x-x509-user-cert', 'application/pkix-cert'),
141 'crl' => array('application/pkix-crl', 'application/pkcs-crl'),
142 'der' => 'application/x-x509-ca-cert',
143 'kdb' => 'application/octet-stream',
144 'pgp' => 'application/pgp',
145 'gpg' => 'application/gpg-keys',
146 'sst' => 'application/octet-stream',
147 'csr' => 'application/octet-stream',
148 'rsa' => 'application/x-pkcs7',
149 'cer' => array('application/pkix-cert', 'application/x-x509-ca-cert'),
150 '3g2' => 'video/3gpp2',
151 '3gp' => 'video/3gp',
152 'mp4' => 'video/mp4',
153 'm4a' => 'audio/x-m4a',
154 'f4v' => 'video/mp4',
155 'aac' => 'audio/x-acc',
156 'm4u' => 'application/vnd.mpegurl',
157 'm3u' => 'text/plain',
158 'xspf' => 'application/xspf+xml',
159 'vlc' => 'application/videolan',
160 'wmv' => 'video/x-ms-wmv',
161 'au' => 'audio/x-au',
162 'ac3' => 'audio/ac3',
163 'flac' => 'audio/x-flac',
164 'ogg' => 'audio/ogg',
165 'kmz' => array('application/vnd.google-earth.kmz', 'application/zip', 'application/x-zip'),
Andrey Andreevb2457b72012-06-07 23:36:56 +0300166 'kml' => array('application/vnd.google-earth.kml+xml', 'application/xml', 'text/xml'),
167 'ics' => 'text/calendar'
Phil Sturgeon39b1c112012-06-04 16:51:14 -0500168);
Derek Allard2067d1a2008-11-13 22:59:24 +0000169
Derek Allard2067d1a2008-11-13 22:59:24 +0000170/* End of file mimes.php */
Andrey Andreeve734b382012-03-26 13:42:36 +0300171/* Location: ./application/config/mimes.php */