Andrey Andreev | 7c9766a | 2012-01-03 10:18:41 +0200 | [diff] [blame] | 1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 2 | /** |
| 3 | * CodeIgniter |
| 4 | * |
Phil Sturgeon | 07c1ac8 | 2012-03-09 17:03:37 +0000 | [diff] [blame] | 5 | * An open source application development framework for PHP 5.2.4 or newer |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 6 | * |
| 7 | * NOTICE OF LICENSE |
Andrey Andreev | 7c9766a | 2012-01-03 10:18:41 +0200 | [diff] [blame] | 8 | * |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 9 | * Licensed under the Academic Free License version 3.0 |
Andrey Andreev | 7c9766a | 2012-01-03 10:18:41 +0200 | [diff] [blame] | 10 | * |
Derek Jones | 61df906 | 2011-10-21 09:55:40 -0500 | [diff] [blame] | 11 | * This source file is subject to the Academic Free License (AFL 3.0) that is |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 12 | * 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 Aker | 0defe5d | 2012-01-01 18:46:41 -0600 | [diff] [blame] | 21 | * @copyright Copyright (c) 2008 - 2012, EllisLab, Inc. (http://ellislab.com/) |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 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 Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 28 | /* |
| 29 | | ------------------------------------------------------------------- |
| 30 | | MIME TYPES |
| 31 | | ------------------------------------------------------------------- |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 32 | | This file contains an array of mime types. It is used by the |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 33 | | Upload class to help identify allowed file types. |
| 34 | | |
| 35 | */ |
| 36 | |
Phil Sturgeon | 39b1c11 | 2012-06-04 16:51:14 -0500 | [diff] [blame] | 37 | return array( |
| 38 | 'hqx' => array('application/mac-binhex40', 'application/mac-binhex', 'application/x-binhex40', 'application/x-mac-binhex40'), |
| 39 | 'cpt' => 'application/mac-compactpro', |
| 40 | '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'), |
| 41 | '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', |
| 59 | 'xls' => array('application/excel', 'application/vnd.ms-excel', 'application/msexcel'), |
| 60 | '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', |
| 71 | 'php' => 'application/x-httpd-php', |
| 72 | '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', |
| 83 | 'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed'), |
| 84 | 'mid' => 'audio/midi', |
| 85 | 'midi' => 'audio/midi', |
| 86 | 'mpga' => 'audio/mpeg', |
| 87 | 'mp2' => 'audio/mpeg', |
| 88 | 'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'), |
| 89 | 'aif' => array('audio/x-aiff', 'audio/aiff'), |
| 90 | 'aiff' => array('audio/x-aiff', 'audio/aiff'), |
| 91 | 'aifc' => 'audio/x-aiff', |
| 92 | 'ram' => 'audio/x-pn-realaudio', |
| 93 | 'rm' => 'audio/x-pn-realaudio', |
| 94 | 'rpm' => 'audio/x-pn-realaudio-plugin', |
| 95 | 'ra' => 'audio/x-realaudio', |
| 96 | 'rv' => 'video/vnd.rn-realvideo', |
| 97 | 'wav' => array('audio/x-wav', 'audio/wave', 'audio/wav'), |
| 98 | 'bmp' => array('image/bmp', 'image/x-windows-bmp'), |
| 99 | 'gif' => 'image/gif', |
| 100 | 'jpeg' => array('image/jpeg', 'image/pjpeg'), |
| 101 | 'jpg' => array('image/jpeg', 'image/pjpeg'), |
| 102 | 'jpe' => array('image/jpeg', 'image/pjpeg'), |
| 103 | 'png' => array('image/png', 'image/x-png'), |
| 104 | 'tiff' => 'image/tiff', |
| 105 | 'tif' => 'image/tiff', |
| 106 | 'css' => 'text/css', |
| 107 | 'html' => 'text/html', |
| 108 | 'htm' => 'text/html', |
| 109 | 'shtml' => 'text/html', |
| 110 | 'txt' => 'text/plain', |
| 111 | 'text' => 'text/plain', |
| 112 | 'log' => array('text/plain', 'text/x-log'), |
| 113 | 'rtx' => 'text/richtext', |
| 114 | 'rtf' => 'text/rtf', |
| 115 | 'xml' => array('application/xml', 'text/xml'), |
| 116 | 'xsl' => array('application/xml', 'text/xsl', 'text/xml'), |
| 117 | 'mpeg' => 'video/mpeg', |
| 118 | 'mpg' => 'video/mpeg', |
| 119 | 'mpe' => 'video/mpeg', |
| 120 | 'qt' => 'video/quicktime', |
| 121 | 'mov' => 'video/quicktime', |
| 122 | 'avi' => array('video/x-msvideo', 'video/msvideo', 'video/avi', 'application/x-troff-msvideo'), |
| 123 | 'movie' => 'video/x-sgi-movie', |
| 124 | 'doc' => array('application/msword', 'application/vnd.ms-office'), |
| 125 | 'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip'), |
| 126 | 'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip'), |
| 127 | 'word' => array('application/msword', 'application/octet-stream'), |
| 128 | 'xl' => 'application/excel', |
| 129 | 'eml' => 'message/rfc822', |
| 130 | 'json' => array('application/json', 'text/json'), |
| 131 | 'pem' => array('application/x-x509-user-cert', 'application/x-pem-file', 'application/octet-stream'), |
| 132 | 'p10' => array('application/x-pkcs10', 'application/pkcs10'), |
| 133 | 'p12' => 'application/x-pkcs12', |
| 134 | 'p7a' => 'application/x-pkcs7-signature', |
| 135 | 'p7c' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'), |
| 136 | 'p7m' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'), |
| 137 | 'p7r' => 'application/x-pkcs7-certreqresp', |
| 138 | 'p7s' => 'application/pkcs7-signature', |
| 139 | 'crt' => array('application/x-x509-ca-cert', 'application/x-x509-user-cert', 'application/pkix-cert'), |
| 140 | 'crl' => array('application/pkix-crl', 'application/pkcs-crl'), |
| 141 | 'der' => 'application/x-x509-ca-cert', |
| 142 | 'kdb' => 'application/octet-stream', |
| 143 | 'pgp' => 'application/pgp', |
| 144 | 'gpg' => 'application/gpg-keys', |
| 145 | 'sst' => 'application/octet-stream', |
| 146 | 'csr' => 'application/octet-stream', |
| 147 | 'rsa' => 'application/x-pkcs7', |
| 148 | 'cer' => array('application/pkix-cert', 'application/x-x509-ca-cert'), |
| 149 | '3g2' => 'video/3gpp2', |
| 150 | '3gp' => 'video/3gp', |
| 151 | 'mp4' => 'video/mp4', |
| 152 | 'm4a' => 'audio/x-m4a', |
| 153 | 'f4v' => 'video/mp4', |
| 154 | 'aac' => 'audio/x-acc', |
| 155 | 'm4u' => 'application/vnd.mpegurl', |
| 156 | 'm3u' => 'text/plain', |
| 157 | 'xspf' => 'application/xspf+xml', |
| 158 | 'vlc' => 'application/videolan', |
| 159 | 'wmv' => 'video/x-ms-wmv', |
| 160 | 'au' => 'audio/x-au', |
| 161 | 'ac3' => 'audio/ac3', |
| 162 | 'flac' => 'audio/x-flac', |
| 163 | 'ogg' => 'audio/ogg', |
| 164 | 'kmz' => array('application/vnd.google-earth.kmz', 'application/zip', 'application/x-zip'), |
Andrey Andreev | b2457b7 | 2012-06-07 23:36:56 +0300 | [diff] [blame] | 165 | 'kml' => array('application/vnd.google-earth.kml+xml', 'application/xml', 'text/xml'), |
| 166 | 'ics' => 'text/calendar' |
Phil Sturgeon | 39b1c11 | 2012-06-04 16:51:14 -0500 | [diff] [blame] | 167 | ); |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 168 | |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 169 | /* End of file mimes.php */ |
Andrey Andreev | e734b38 | 2012-03-26 13:42:36 +0300 | [diff] [blame] | 170 | /* Location: ./application/config/mimes.php */ |