blob: c43f1fc2f2d6d5b37911afe9f4072a346da0de65 [file] [log] [blame]
Derek Jones4b9c6292011-07-01 17:40:48 -05001<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
Derek Jonesf4a4bd82011-10-20 12:18:42 -05002/**
3 * CodeIgniter
4 *
5 * An open source application development framework for PHP 5.1.6 or newer
6 *
7 * NOTICE OF LICENSE
8 *
9 * Licensed under the Academic Free License version 3.0
10 *
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
21 * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. (http://ellislab.com/)
22 * @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
MarcosCoelhocb212c62011-08-31 14:59:19 -030037$mimes = array('hqx' => array('application/mac-binhex40', 'application/mac-binhex', 'application/x-binhex40', 'application/x-mac-binhex40'),
Derek Allard2067d1a2008-11-13 22:59:24 +000038 'cpt' => 'application/mac-compactpro',
Phil Sturgeondd9b7632011-08-10 09:00:13 -060039 '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'),
Kevin Hoogheem17e7b442011-08-23 22:48:48 -050040 'bin' => array('application/macbinary', 'application/mac-binary', 'application/octet-stream', 'application/x-binary', 'application/x-macbinary'),
Derek Allard2067d1a2008-11-13 22:59:24 +000041 'dms' => 'application/octet-stream',
42 'lha' => 'application/octet-stream',
43 'lzh' => 'application/octet-stream',
Derek Allard81c98052010-01-17 16:27:03 +000044 'exe' => array('application/octet-stream', 'application/x-msdownload'),
Derek Allard2067d1a2008-11-13 22:59:24 +000045 'class' => 'application/octet-stream',
46 'psd' => 'application/x-photoshop',
47 'so' => 'application/octet-stream',
48 'sea' => 'application/octet-stream',
49 'dll' => 'application/octet-stream',
50 'oda' => 'application/oda',
51 'pdf' => array('application/pdf', 'application/x-download'),
52 'ai' => 'application/postscript',
53 'eps' => 'application/postscript',
54 'ps' => 'application/postscript',
55 'smi' => 'application/smil',
56 'smil' => 'application/smil',
57 'mif' => 'application/vnd.mif',
Derek Allard6ec22f52009-01-16 14:52:12 +000058 'xls' => array('application/excel', 'application/vnd.ms-excel', 'application/msexcel'),
Derek Allard2067d1a2008-11-13 22:59:24 +000059 'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint'),
mpmontcc35d122011-11-07 23:16:51 +000060 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
Derek Allard2067d1a2008-11-13 22:59:24 +000061 'wbxml' => 'application/wbxml',
62 'wmlc' => 'application/wmlc',
63 'dcr' => 'application/x-director',
64 'dir' => 'application/x-director',
65 'dxr' => 'application/x-director',
66 'dvi' => 'application/x-dvi',
67 'gtar' => 'application/x-gtar',
68 'gz' => 'application/x-gzip',
Kevin Hoogheemeddd1072011-08-24 07:59:36 -050069 'gzip' => 'application/x-gzip',
Derek Allard2067d1a2008-11-13 22:59:24 +000070 'php' => 'application/x-httpd-php',
71 'php4' => 'application/x-httpd-php',
72 'php3' => 'application/x-httpd-php',
73 'phtml' => 'application/x-httpd-php',
74 'phps' => 'application/x-httpd-php-source',
75 'js' => 'application/x-javascript',
76 'swf' => 'application/x-shockwave-flash',
77 'sit' => 'application/x-stuffit',
78 'tar' => 'application/x-tar',
Derek Allard81c98052010-01-17 16:27:03 +000079 'tgz' => array('application/x-tar', 'application/x-gzip-compressed'),
Derek Allard2067d1a2008-11-13 22:59:24 +000080 'xhtml' => 'application/xhtml+xml',
81 'xht' => 'application/xhtml+xml',
Kevin Hoogheemeddd1072011-08-24 07:59:36 -050082 'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed'),
Derek Allard2067d1a2008-11-13 22:59:24 +000083 'mid' => 'audio/midi',
84 'midi' => 'audio/midi',
85 'mpga' => 'audio/mpeg',
86 'mp2' => 'audio/mpeg',
Phil Sturgeonff5c9482011-02-09 16:10:58 +000087 'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'),
Kevin Hoogheem17e7b442011-08-23 22:48:48 -050088 'aif' => array('audio/x-aiff', 'audio/aiff'),
89 'aiff' => array('audio/x-aiff', 'audio/aiff'),
Derek Allard2067d1a2008-11-13 22:59:24 +000090 'aifc' => 'audio/x-aiff',
91 'ram' => 'audio/x-pn-realaudio',
92 'rm' => 'audio/x-pn-realaudio',
93 'rpm' => 'audio/x-pn-realaudio-plugin',
94 'ra' => 'audio/x-realaudio',
95 'rv' => 'video/vnd.rn-realvideo',
Bo-Yi Wubf3c4042011-10-07 14:40:15 +080096 'wav' => array('audio/x-wav', 'audio/wave', 'audio/wav'),
Kevin Hoogheem17e7b442011-08-23 22:48:48 -050097 'bmp' => array('image/bmp', 'image/x-windows-bmp'),
Derek Allard2067d1a2008-11-13 22:59:24 +000098 'gif' => 'image/gif',
99 'jpeg' => array('image/jpeg', 'image/pjpeg'),
100 'jpg' => array('image/jpeg', 'image/pjpeg'),
101 'jpe' => array('image/jpeg', 'image/pjpeg'),
Derek Jones4b9c6292011-07-01 17:40:48 -0500102 'png' => array('image/png', 'image/x-png'),
Derek Allard2067d1a2008-11-13 22:59:24 +0000103 'tiff' => 'image/tiff',
104 'tif' => 'image/tiff',
105 'css' => 'text/css',
106 'html' => 'text/html',
107 'htm' => 'text/html',
108 'shtml' => 'text/html',
109 'txt' => 'text/plain',
110 'text' => 'text/plain',
111 'log' => array('text/plain', 'text/x-log'),
112 'rtx' => 'text/richtext',
113 'rtf' => 'text/rtf',
114 'xml' => 'text/xml',
115 'xsl' => 'text/xml',
116 'mpeg' => 'video/mpeg',
117 'mpg' => 'video/mpeg',
118 'mpe' => 'video/mpeg',
119 'qt' => 'video/quicktime',
120 'mov' => 'video/quicktime',
Kevin Hoogheem17e7b442011-08-23 22:48:48 -0500121 'avi' => array('video/x-msvideo', 'video/msvideo', 'video/avi', 'application/x-troff-msvideo'),
Derek Allard2067d1a2008-11-13 22:59:24 +0000122 'movie' => 'video/x-sgi-movie',
123 'doc' => 'application/msword',
124 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
125 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
126 'word' => array('application/msword', 'application/octet-stream'),
127 'xl' => 'application/excel',
Phil Sturgeon9869f892011-03-08 21:16:53 +0000128 'eml' => 'message/rfc822',
Kevin Hoogheemeddd1072011-08-24 07:59:36 -0500129 'json' => array('application/json', 'text/json'),
130 'pem' => array('application/x-x509-user-cert', 'application/x-pem-file', 'application/octet-stream'),
Kevin Hoogheem17e7b442011-08-23 22:48:48 -0500131 'p10' => array('application/x-pkcs10', 'application/pkcs10'),
132 'p12' => 'application/x-pkcs12',
133 'p7a' => 'application/x-pkcs7-signature',
134 'p7c' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
135 'p7m' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
136 'p7r' => 'application/x-pkcs7-certreqresp',
137 'p7s' => 'application/pkcs7-signature',
138 'crt' => array('application/x-x509-ca-cert', 'application/x-x509-user-cert', 'application/pkix-cert'),
139 'crl' => array('application/pkix-crl', 'application/pkcs-crl'),
140 'der' => 'application/x-x509-ca-cert',
141 'kdb' => 'application/octet-stream',
142 'pgp' => 'application/pgp',
143 'gpg' => 'application/gpg-keys',
144 'sst' => 'application/octet-stream',
145 'csr' => 'application/octet-stream',
146 'rsa' => 'application/x-pkcs7',
147 'cer' => array('application/pkix-cert', 'application/x-x509-ca-cert'),
148 '3g2' => 'video/3gpp2',
149 '3gp' => 'video/3gp',
150 'mp4' => 'video/mp4',
151 'm4a' => 'audio/x-m4a',
152 'f4v' => 'video/mp4',
153 'aac' => 'audio/x-acc',
154 'm4u' => 'application/vnd.mpegurl',
155 'm3u' => 'text/plain',
156 'xspf' => 'application/xspf+xml',
157 'vlc' => 'application/videolan',
158 'wmv' => 'video/x-ms-wmv',
159 'au' => 'audio/x-au',
160 'ac3' => 'audio/ac3',
161 'flac' => 'audio/x-flac',
162 'ogg' => 'audio/ogg',
Derek Allard2067d1a2008-11-13 22:59:24 +0000163 );
164
165
166/* End of file mimes.php */
Bo-Yi Wubf3c4042011-10-07 14:40:15 +0800167/* Location: ./application/config/mimes.php */