blob: 8b5036f2373bff38e3fbd12c7991ada7768cac20 [file] [log] [blame]
adminb0dd10f2006-08-25 17:25:49 +00001<?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
adminb1fddc02006-10-09 21:29:07 +00007| Upload class to help identify allowed file types.
adminb0dd10f2006-08-25 17:25:49 +00008|
9*/
10
11$mimes = array( 'hqx' => 'application/mac-binhex40',
12 'cpt' => 'application/mac-compactpro',
13 'csv' => array('text/x-comma-separated-values', 'application/vnd.ms-excel'),
14 'doc' => 'application/msword',
15 'bin' => 'application/macbinary',
16 'dms' => 'application/octet-stream',
17 'lha' => 'application/octet-stream',
18 'lzh' => 'application/octet-stream',
19 'exe' => 'application/octet-stream',
20 'class' => 'application/octet-stream',
21 'psd' => 'application/x-photoshop',
22 'so' => 'application/octet-stream',
23 'sea' => 'application/octet-stream',
24 'dll' => 'application/octet-stream',
25 'oda' => 'application/oda',
26 'pdf' => 'application/pdf',
27 'ai' => 'application/postscript',
28 'eps' => 'application/postscript',
29 'ps' => 'application/postscript',
30 'smi' => 'application/smil',
31 'smil' => 'application/smil',
32 'mif' => 'application/vnd.mif',
33 'xls' => array('application/excel', 'application/vnd.ms-excel'),
34 'ppt' => 'application/powerpoint',
35 'wbxml' => 'application/wbxml',
36 'wmlc' => 'application/wmlc',
37 'dcr' => 'application/x-director',
38 'dir' => 'application/x-director',
39 'dxr' => 'application/x-director',
40 'dvi' => 'application/x-dvi',
41 'gtar' => 'application/x-gtar',
admin78bc0392006-10-02 02:38:50 +000042 'gz' => 'application/x-gzip',
adminb0dd10f2006-08-25 17:25:49 +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',
52 'tgz' => 'application/x-tar',
53 'xhtml' => 'application/xhtml+xml',
54 'xht' => 'application/xhtml+xml',
admin78bc0392006-10-02 02:38:50 +000055 'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed'),
adminb0dd10f2006-08-25 17:25:49 +000056 'mid' => 'audio/midi',
57 'midi' => 'audio/midi',
58 'mpga' => 'audio/mpeg',
59 'mp2' => 'audio/mpeg',
60 'mp3' => 'audio/mpeg',
61 'aif' => 'audio/x-aiff',
62 'aiff' => 'audio/x-aiff',
63 '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',
70 'bmp' => 'image/bmp',
71 'gif' => 'image/gif',
72 'jpeg' => array('image/jpeg', 'image/pjpeg'),
73 'jpg' => array('image/jpeg', 'image/pjpeg'),
74 'jpe' => array('image/jpeg', 'image/pjpeg'),
75 'png' => array('image/png', 'image/x-png'),
76 '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',
94 'avi' => 'video/x-msvideo',
95 'movie' => 'video/x-sgi-movie',
96 'doc' => 'application/msword',
97 'word' => 'application/msword',
98 'xl' => 'application/excel',
99 'eml' => 'message/rfc822'
100 );
101
102
103?>