| 12694 |
anikendra |
1 |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
2 |
/*
|
|
|
3 |
| -------------------------------------------------------------------
|
|
|
4 |
| MIME TYPES
|
|
|
5 |
| -------------------------------------------------------------------
|
|
|
6 |
| This file contains an array of mime types. It is used by the
|
|
|
7 |
| Upload class to help identify allowed file types.
|
|
|
8 |
|
|
|
|
9 |
*/
|
|
|
10 |
|
|
|
11 |
$mimes = array( 'hqx' => 'application/mac-binhex40',
|
|
|
12 |
'cpt' => 'application/mac-compactpro',
|
|
|
13 |
'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'),
|
|
|
14 |
'bin' => 'application/macbinary',
|
|
|
15 |
'dms' => 'application/octet-stream',
|
|
|
16 |
'lha' => 'application/octet-stream',
|
|
|
17 |
'lzh' => 'application/octet-stream',
|
|
|
18 |
'exe' => array('application/octet-stream', 'application/x-msdownload'),
|
|
|
19 |
'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',
|
|
|
32 |
'xls' => array('application/excel', 'application/vnd.ms-excel', 'application/msexcel'),
|
|
|
33 |
'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',
|
|
|
42 |
'php' => 'application/x-httpd-php',
|
|
|
43 |
'php4' => 'application/x-httpd-php',
|
|
|
44 |
'php3' => 'application/x-httpd-php',
|
|
|
45 |
'phtml' => 'application/x-httpd-php',
|
|
|
46 |
'phps' => 'application/x-httpd-php-source',
|
|
|
47 |
'js' => 'application/x-javascript',
|
|
|
48 |
'swf' => 'application/x-shockwave-flash',
|
|
|
49 |
'sit' => 'application/x-stuffit',
|
|
|
50 |
'tar' => 'application/x-tar',
|
|
|
51 |
'tgz' => array('application/x-tar', 'application/x-gzip-compressed'),
|
|
|
52 |
'xhtml' => 'application/xhtml+xml',
|
|
|
53 |
'xht' => 'application/xhtml+xml',
|
|
|
54 |
'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed'),
|
|
|
55 |
'mid' => 'audio/midi',
|
|
|
56 |
'midi' => 'audio/midi',
|
|
|
57 |
'mpga' => 'audio/mpeg',
|
|
|
58 |
'mp2' => 'audio/mpeg',
|
|
|
59 |
'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'),
|
|
|
60 |
'aif' => 'audio/x-aiff',
|
|
|
61 |
'aiff' => 'audio/x-aiff',
|
|
|
62 |
'aifc' => 'audio/x-aiff',
|
|
|
63 |
'ram' => 'audio/x-pn-realaudio',
|
|
|
64 |
'rm' => 'audio/x-pn-realaudio',
|
|
|
65 |
'rpm' => 'audio/x-pn-realaudio-plugin',
|
|
|
66 |
'ra' => 'audio/x-realaudio',
|
|
|
67 |
'rv' => 'video/vnd.rn-realvideo',
|
|
|
68 |
'wav' => array('audio/x-wav', 'audio/wave', 'audio/wav'),
|
|
|
69 |
'bmp' => array('image/bmp', 'image/x-windows-bmp'),
|
|
|
70 |
'gif' => 'image/gif',
|
|
|
71 |
'jpeg' => array('image/jpeg', 'image/pjpeg'),
|
|
|
72 |
'jpg' => array('image/jpeg', 'image/pjpeg'),
|
|
|
73 |
'jpe' => array('image/jpeg', 'image/pjpeg'),
|
|
|
74 |
'png' => array('image/png', 'image/x-png'),
|
|
|
75 |
'tiff' => 'image/tiff',
|
|
|
76 |
'tif' => 'image/tiff',
|
|
|
77 |
'css' => 'text/css',
|
|
|
78 |
'html' => 'text/html',
|
|
|
79 |
'htm' => 'text/html',
|
|
|
80 |
'shtml' => 'text/html',
|
|
|
81 |
'txt' => 'text/plain',
|
|
|
82 |
'text' => 'text/plain',
|
|
|
83 |
'log' => array('text/plain', 'text/x-log'),
|
|
|
84 |
'rtx' => 'text/richtext',
|
|
|
85 |
'rtf' => 'text/rtf',
|
|
|
86 |
'xml' => 'text/xml',
|
|
|
87 |
'xsl' => 'text/xml',
|
|
|
88 |
'mpeg' => 'video/mpeg',
|
|
|
89 |
'mpg' => 'video/mpeg',
|
|
|
90 |
'mpe' => 'video/mpeg',
|
|
|
91 |
'qt' => 'video/quicktime',
|
|
|
92 |
'mov' => 'video/quicktime',
|
|
|
93 |
'avi' => 'video/x-msvideo',
|
|
|
94 |
'movie' => 'video/x-sgi-movie',
|
|
|
95 |
'doc' => 'application/msword',
|
|
|
96 |
'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip'),
|
|
|
97 |
'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip'),
|
|
|
98 |
'word' => array('application/msword', 'application/octet-stream'),
|
|
|
99 |
'xl' => 'application/excel',
|
|
|
100 |
'eml' => 'message/rfc822',
|
|
|
101 |
'json' => array('application/json', 'text/json')
|
|
|
102 |
);
|
|
|
103 |
|
|
|
104 |
|
|
|
105 |
/* End of file mimes.php */
|
|
|
106 |
/* Location: ./application/config/mimes.php */
|