blob: be9a678422129ad0f0161dbebe7cb47aae23f28a [file] [log] [blame]
Derek Jones4b9c6292011-07-01 17:40:48 -05001<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
Derek Allard2067d1a2008-11-13 22:59:24 +00002/*
3| -------------------------------------------------------------------
4| MIME TYPES
5| -------------------------------------------------------------------
Derek Jones4b9c6292011-07-01 17:40:48 -05006| This file contains an array of mime types. It is used by the
Derek Allard2067d1a2008-11-13 22:59:24 +00007| Upload class to help identify allowed file types.
8|
9*/
10
Kevin Hoogheem17e7b442011-08-23 22:48:48 -050011$mimes = array( 'hqx' => array('application/mac-binhex40', 'application/mac-binhex', 'application/x-binhex40', 'application/x-mac-binhex40'),
Derek Allard2067d1a2008-11-13 22:59:24 +000012 'cpt' => 'application/mac-compactpro',
Phil Sturgeondd9b7632011-08-10 09:00:13 -060013 '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 -050014 'bin' => array('application/macbinary', 'application/mac-binary', 'application/octet-stream', 'application/x-binary', 'application/x-macbinary'),
Derek Allard2067d1a2008-11-13 22:59:24 +000015 'dms' => 'application/octet-stream',
16 'lha' => 'application/octet-stream',
17 'lzh' => 'application/octet-stream',
Derek Allard81c98052010-01-17 16:27:03 +000018 'exe' => array('application/octet-stream', 'application/x-msdownload'),
Derek Allard2067d1a2008-11-13 22:59:24 +000019 'class' => 'application/octet-stream',
20 'psd' => 'application/x-photoshop',
21 'so' => 'application/octet-stream',
22 'sea' => 'application/octet-stream',
23 'dll' => 'application/octet-stream',
24 'oda' => 'application/oda',
25 'pdf' => array('application/pdf', 'application/x-download'),
26 'ai' => 'application/postscript',
27 'eps' => 'application/postscript',
28 'ps' => 'application/postscript',
29 'smi' => 'application/smil',
30 'smil' => 'application/smil',
31 'mif' => 'application/vnd.mif',
Derek Allard6ec22f52009-01-16 14:52:12 +000032 'xls' => array('application/excel', 'application/vnd.ms-excel', 'application/msexcel'),
Derek Allard2067d1a2008-11-13 22:59:24 +000033 'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint'),
34 'wbxml' => 'application/wbxml',
35 'wmlc' => 'application/wmlc',
36 'dcr' => 'application/x-director',
37 'dir' => 'application/x-director',
38 'dxr' => 'application/x-director',
39 'dvi' => 'application/x-dvi',
40 'gtar' => 'application/x-gtar',
41 'gz' => 'application/x-gzip',
Kevin Hoogheem17e7b442011-08-23 22:48:48 -050042 'gzip' => 'application/x-gzip',
Derek Allard2067d1a2008-11-13 22:59:24 +000043 'php' => 'application/x-httpd-php',
44 'php4' => 'application/x-httpd-php',
45 'php3' => 'application/x-httpd-php',
46 'phtml' => 'application/x-httpd-php',
47 'phps' => 'application/x-httpd-php-source',
48 'js' => 'application/x-javascript',
49 'swf' => 'application/x-shockwave-flash',
50 'sit' => 'application/x-stuffit',
51 'tar' => 'application/x-tar',
Derek Allard81c98052010-01-17 16:27:03 +000052 'tgz' => array('application/x-tar', 'application/x-gzip-compressed'),
Derek Allard2067d1a2008-11-13 22:59:24 +000053 'xhtml' => 'application/xhtml+xml',
54 'xht' => 'application/xhtml+xml',
Kevin Hoogheem17e7b442011-08-23 22:48:48 -050055 'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed'),
Derek Allard2067d1a2008-11-13 22:59:24 +000056 'mid' => 'audio/midi',
57 'midi' => 'audio/midi',
58 'mpga' => 'audio/mpeg',
59 'mp2' => 'audio/mpeg',
Phil Sturgeonff5c9482011-02-09 16:10:58 +000060 'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'),
Kevin Hoogheem17e7b442011-08-23 22:48:48 -050061 'aif' => array('audio/x-aiff', 'audio/aiff'),
62 'aiff' => array('audio/x-aiff', 'audio/aiff'),
Derek Allard2067d1a2008-11-13 22:59:24 +000063 'aifc' => 'audio/x-aiff',
64 'ram' => 'audio/x-pn-realaudio',
65 'rm' => 'audio/x-pn-realaudio',
66 'rpm' => 'audio/x-pn-realaudio-plugin',
67 'ra' => 'audio/x-realaudio',
68 'rv' => 'video/vnd.rn-realvideo',
69 'wav' => 'audio/x-wav',
Kevin Hoogheem17e7b442011-08-23 22:48:48 -050070 'bmp' => array('image/bmp', 'image/x-windows-bmp'),
Derek Allard2067d1a2008-11-13 22:59:24 +000071 'gif' => 'image/gif',
72 'jpeg' => array('image/jpeg', 'image/pjpeg'),
73 'jpg' => array('image/jpeg', 'image/pjpeg'),
74 'jpe' => array('image/jpeg', 'image/pjpeg'),
Derek Jones4b9c6292011-07-01 17:40:48 -050075 'png' => array('image/png', 'image/x-png'),
Derek Allard2067d1a2008-11-13 22:59:24 +000076 'tiff' => 'image/tiff',
77 'tif' => 'image/tiff',
78 'css' => 'text/css',
79 'html' => 'text/html',
80 'htm' => 'text/html',
81 'shtml' => 'text/html',
82 'txt' => 'text/plain',
83 'text' => 'text/plain',
84 'log' => array('text/plain', 'text/x-log'),
85 'rtx' => 'text/richtext',
86 'rtf' => 'text/rtf',
87 'xml' => 'text/xml',
88 'xsl' => 'text/xml',
89 'mpeg' => 'video/mpeg',
90 'mpg' => 'video/mpeg',
91 'mpe' => 'video/mpeg',
92 'qt' => 'video/quicktime',
93 'mov' => 'video/quicktime',
Kevin Hoogheem17e7b442011-08-23 22:48:48 -050094 'avi' => array('video/x-msvideo', 'video/msvideo', 'video/avi', 'application/x-troff-msvideo'),
Derek Allard2067d1a2008-11-13 22:59:24 +000095 'movie' => 'video/x-sgi-movie',
96 'doc' => 'application/msword',
97 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
98 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
99 'word' => array('application/msword', 'application/octet-stream'),
100 'xl' => 'application/excel',
Phil Sturgeon9869f892011-03-08 21:16:53 +0000101 'eml' => 'message/rfc822',
Kevin Hoogheem17e7b442011-08-23 22:48:48 -0500102 'json' => array('application/json', 'text/json'),
103 'pem' => array('application/x-x509-user-cert', 'application/x-pem-file', 'application/octet-stream'),
104 'p10' => array('application/x-pkcs10', 'application/pkcs10'),
105 'p12' => 'application/x-pkcs12',
106 'p7a' => 'application/x-pkcs7-signature',
107 'p7c' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
108 'p7m' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
109 'p7r' => 'application/x-pkcs7-certreqresp',
110 'p7s' => 'application/pkcs7-signature',
111 'crt' => array('application/x-x509-ca-cert', 'application/x-x509-user-cert', 'application/pkix-cert'),
112 'crl' => array('application/pkix-crl', 'application/pkcs-crl'),
113 'der' => 'application/x-x509-ca-cert',
114 'kdb' => 'application/octet-stream',
115 'pgp' => 'application/pgp',
116 'gpg' => 'application/gpg-keys',
117 'sst' => 'application/octet-stream',
118 'csr' => 'application/octet-stream',
119 'rsa' => 'application/x-pkcs7',
120 'cer' => array('application/pkix-cert', 'application/x-x509-ca-cert'),
121 '3g2' => 'video/3gpp2',
122 '3gp' => 'video/3gp',
123 'mp4' => 'video/mp4',
124 'm4a' => 'audio/x-m4a',
125 'f4v' => 'video/mp4',
126 'aac' => 'audio/x-acc',
127 'm4u' => 'application/vnd.mpegurl',
128 'm3u' => 'text/plain',
129 'xspf' => 'application/xspf+xml',
130 'vlc' => 'application/videolan',
131 'wmv' => 'video/x-ms-wmv',
132 'au' => 'audio/x-au',
133 'ac3' => 'audio/ac3',
134 'flac' => 'audio/x-flac',
135 'ogg' => 'audio/ogg',
Derek Allard2067d1a2008-11-13 22:59:24 +0000136 );
137
138
139/* End of file mimes.php */
Derek Allard81c98052010-01-17 16:27:03 +0000140/* Location: ./application/config/mimes.php */