forked from mirrors/easyappointments
Updated the application/config/mimes.php to CI v3.
This commit is contained in:
parent
840fe915eb
commit
448a87e693
1 changed files with 159 additions and 98 deletions
|
@ -1,4 +1,6 @@
|
||||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
/*
|
/*
|
||||||
| -------------------------------------------------------------------
|
| -------------------------------------------------------------------
|
||||||
| MIME TYPES
|
| MIME TYPES
|
||||||
|
@ -7,100 +9,159 @@
|
||||||
| Upload class to help identify allowed file types.
|
| Upload class to help identify allowed file types.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
return array(
|
||||||
$mimes = array( 'hqx' => 'application/mac-binhex40',
|
'hqx' => array('application/mac-binhex40', 'application/mac-binhex', 'application/x-binhex40', 'application/x-mac-binhex40'),
|
||||||
'cpt' => 'application/mac-compactpro',
|
'cpt' => 'application/mac-compactpro',
|
||||||
'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'),
|
'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', 'text/plain'),
|
||||||
'bin' => 'application/macbinary',
|
'bin' => array('application/macbinary', 'application/mac-binary', 'application/octet-stream', 'application/x-binary', 'application/x-macbinary'),
|
||||||
'dms' => 'application/octet-stream',
|
'dms' => 'application/octet-stream',
|
||||||
'lha' => 'application/octet-stream',
|
'lha' => 'application/octet-stream',
|
||||||
'lzh' => 'application/octet-stream',
|
'lzh' => 'application/octet-stream',
|
||||||
'exe' => array('application/octet-stream', 'application/x-msdownload'),
|
'exe' => array('application/octet-stream', 'application/x-msdownload'),
|
||||||
'class' => 'application/octet-stream',
|
'class' => 'application/octet-stream',
|
||||||
'psd' => 'application/x-photoshop',
|
'psd' => array('application/x-photoshop', 'image/vnd.adobe.photoshop'),
|
||||||
'so' => 'application/octet-stream',
|
'so' => 'application/octet-stream',
|
||||||
'sea' => 'application/octet-stream',
|
'sea' => 'application/octet-stream',
|
||||||
'dll' => 'application/octet-stream',
|
'dll' => 'application/octet-stream',
|
||||||
'oda' => 'application/oda',
|
'oda' => 'application/oda',
|
||||||
'pdf' => array('application/pdf', 'application/x-download'),
|
'pdf' => array('application/pdf', 'application/force-download', 'application/x-download', 'binary/octet-stream'),
|
||||||
'ai' => 'application/postscript',
|
'ai' => array('application/pdf', 'application/postscript'),
|
||||||
'eps' => 'application/postscript',
|
'eps' => 'application/postscript',
|
||||||
'ps' => 'application/postscript',
|
'ps' => 'application/postscript',
|
||||||
'smi' => 'application/smil',
|
'smi' => 'application/smil',
|
||||||
'smil' => 'application/smil',
|
'smil' => 'application/smil',
|
||||||
'mif' => 'application/vnd.mif',
|
'mif' => 'application/vnd.mif',
|
||||||
'xls' => array('application/excel', 'application/vnd.ms-excel', 'application/msexcel'),
|
'xls' => array('application/vnd.ms-excel', 'application/msexcel', 'application/x-msexcel', 'application/x-ms-excel', 'application/x-excel', 'application/x-dos_ms_excel', 'application/xls', 'application/x-xls', 'application/excel', 'application/download', 'application/vnd.ms-office', 'application/msword'),
|
||||||
'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint'),
|
'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint', 'application/vnd.ms-office', 'application/msword'),
|
||||||
'wbxml' => 'application/wbxml',
|
'pptx' => array('application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/x-zip', 'application/zip'),
|
||||||
'wmlc' => 'application/wmlc',
|
'wbxml' => 'application/wbxml',
|
||||||
'dcr' => 'application/x-director',
|
'wmlc' => 'application/wmlc',
|
||||||
'dir' => 'application/x-director',
|
'dcr' => 'application/x-director',
|
||||||
'dxr' => 'application/x-director',
|
'dir' => 'application/x-director',
|
||||||
'dvi' => 'application/x-dvi',
|
'dxr' => 'application/x-director',
|
||||||
'gtar' => 'application/x-gtar',
|
'dvi' => 'application/x-dvi',
|
||||||
'gz' => 'application/x-gzip',
|
'gtar' => 'application/x-gtar',
|
||||||
'php' => 'application/x-httpd-php',
|
'gz' => 'application/x-gzip',
|
||||||
'php4' => 'application/x-httpd-php',
|
'gzip' => 'application/x-gzip',
|
||||||
'php3' => 'application/x-httpd-php',
|
'php' => array('application/x-httpd-php', 'application/php', 'application/x-php', 'text/php', 'text/x-php', 'application/x-httpd-php-source'),
|
||||||
'phtml' => 'application/x-httpd-php',
|
'php4' => 'application/x-httpd-php',
|
||||||
'phps' => 'application/x-httpd-php-source',
|
'php3' => 'application/x-httpd-php',
|
||||||
'js' => 'application/x-javascript',
|
'phtml' => 'application/x-httpd-php',
|
||||||
'swf' => 'application/x-shockwave-flash',
|
'phps' => 'application/x-httpd-php-source',
|
||||||
'sit' => 'application/x-stuffit',
|
'js' => array('application/x-javascript', 'text/plain'),
|
||||||
'tar' => 'application/x-tar',
|
'swf' => 'application/x-shockwave-flash',
|
||||||
'tgz' => array('application/x-tar', 'application/x-gzip-compressed'),
|
'sit' => 'application/x-stuffit',
|
||||||
'xhtml' => 'application/xhtml+xml',
|
'tar' => 'application/x-tar',
|
||||||
'xht' => 'application/xhtml+xml',
|
'tgz' => array('application/x-tar', 'application/x-gzip-compressed'),
|
||||||
'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed'),
|
'z' => 'application/x-compress',
|
||||||
'mid' => 'audio/midi',
|
'xhtml' => 'application/xhtml+xml',
|
||||||
'midi' => 'audio/midi',
|
'xht' => 'application/xhtml+xml',
|
||||||
'mpga' => 'audio/mpeg',
|
'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed', 'application/s-compressed', 'multipart/x-zip'),
|
||||||
'mp2' => 'audio/mpeg',
|
'rar' => array('application/x-rar', 'application/rar', 'application/x-rar-compressed'),
|
||||||
'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'),
|
'mid' => 'audio/midi',
|
||||||
'aif' => 'audio/x-aiff',
|
'midi' => 'audio/midi',
|
||||||
'aiff' => 'audio/x-aiff',
|
'mpga' => 'audio/mpeg',
|
||||||
'aifc' => 'audio/x-aiff',
|
'mp2' => 'audio/mpeg',
|
||||||
'ram' => 'audio/x-pn-realaudio',
|
'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'),
|
||||||
'rm' => 'audio/x-pn-realaudio',
|
'aif' => array('audio/x-aiff', 'audio/aiff'),
|
||||||
'rpm' => 'audio/x-pn-realaudio-plugin',
|
'aiff' => array('audio/x-aiff', 'audio/aiff'),
|
||||||
'ra' => 'audio/x-realaudio',
|
'aifc' => 'audio/x-aiff',
|
||||||
'rv' => 'video/vnd.rn-realvideo',
|
'ram' => 'audio/x-pn-realaudio',
|
||||||
'wav' => array('audio/x-wav', 'audio/wave', 'audio/wav'),
|
'rm' => 'audio/x-pn-realaudio',
|
||||||
'bmp' => array('image/bmp', 'image/x-windows-bmp'),
|
'rpm' => 'audio/x-pn-realaudio-plugin',
|
||||||
'gif' => 'image/gif',
|
'ra' => 'audio/x-realaudio',
|
||||||
'jpeg' => array('image/jpeg', 'image/pjpeg'),
|
'rv' => 'video/vnd.rn-realvideo',
|
||||||
'jpg' => array('image/jpeg', 'image/pjpeg'),
|
'wav' => array('audio/x-wav', 'audio/wave', 'audio/wav'),
|
||||||
'jpe' => array('image/jpeg', 'image/pjpeg'),
|
'bmp' => array('image/bmp', 'image/x-bmp', 'image/x-bitmap', 'image/x-xbitmap', 'image/x-win-bitmap', 'image/x-windows-bmp', 'image/ms-bmp', 'image/x-ms-bmp', 'application/bmp', 'application/x-bmp', 'application/x-win-bitmap'),
|
||||||
'png' => array('image/png', 'image/x-png'),
|
'gif' => 'image/gif',
|
||||||
'tiff' => 'image/tiff',
|
'jpeg' => array('image/jpeg', 'image/pjpeg'),
|
||||||
'tif' => 'image/tiff',
|
'jpg' => array('image/jpeg', 'image/pjpeg'),
|
||||||
'css' => 'text/css',
|
'jpe' => array('image/jpeg', 'image/pjpeg'),
|
||||||
'html' => 'text/html',
|
'jp2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||||
'htm' => 'text/html',
|
'j2k' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||||
'shtml' => 'text/html',
|
'jpf' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||||
'txt' => 'text/plain',
|
'jpg2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||||
'text' => 'text/plain',
|
'jpx' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||||
'log' => array('text/plain', 'text/x-log'),
|
'jpm' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||||
'rtx' => 'text/richtext',
|
'mj2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||||
'rtf' => 'text/rtf',
|
'mjp2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||||
'xml' => 'text/xml',
|
'png' => array('image/png', 'image/x-png'),
|
||||||
'xsl' => 'text/xml',
|
'tiff' => 'image/tiff',
|
||||||
'mpeg' => 'video/mpeg',
|
'tif' => 'image/tiff',
|
||||||
'mpg' => 'video/mpeg',
|
'css' => array('text/css', 'text/plain'),
|
||||||
'mpe' => 'video/mpeg',
|
'html' => array('text/html', 'text/plain'),
|
||||||
'qt' => 'video/quicktime',
|
'htm' => array('text/html', 'text/plain'),
|
||||||
'mov' => 'video/quicktime',
|
'shtml' => array('text/html', 'text/plain'),
|
||||||
'avi' => 'video/x-msvideo',
|
'txt' => 'text/plain',
|
||||||
'movie' => 'video/x-sgi-movie',
|
'text' => 'text/plain',
|
||||||
'doc' => 'application/msword',
|
'log' => array('text/plain', 'text/x-log'),
|
||||||
'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip'),
|
'rtx' => 'text/richtext',
|
||||||
'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip'),
|
'rtf' => 'text/rtf',
|
||||||
'word' => array('application/msword', 'application/octet-stream'),
|
'xml' => array('application/xml', 'text/xml', 'text/plain'),
|
||||||
'xl' => 'application/excel',
|
'xsl' => array('application/xml', 'text/xsl', 'text/xml'),
|
||||||
'eml' => 'message/rfc822',
|
'mpeg' => 'video/mpeg',
|
||||||
'json' => array('application/json', 'text/json')
|
'mpg' => 'video/mpeg',
|
||||||
);
|
'mpe' => 'video/mpeg',
|
||||||
|
'qt' => 'video/quicktime',
|
||||||
|
'mov' => 'video/quicktime',
|
||||||
/* End of file mimes.php */
|
'avi' => array('video/x-msvideo', 'video/msvideo', 'video/avi', 'application/x-troff-msvideo'),
|
||||||
/* Location: ./application/config/mimes.php */
|
'movie' => 'video/x-sgi-movie',
|
||||||
|
'doc' => array('application/msword', 'application/vnd.ms-office'),
|
||||||
|
'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword', 'application/x-zip'),
|
||||||
|
'dot' => array('application/msword', 'application/vnd.ms-office'),
|
||||||
|
'dotx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword'),
|
||||||
|
'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip', 'application/vnd.ms-excel', 'application/msword', 'application/x-zip'),
|
||||||
|
'word' => array('application/msword', 'application/octet-stream'),
|
||||||
|
'xl' => 'application/excel',
|
||||||
|
'eml' => 'message/rfc822',
|
||||||
|
'json' => array('application/json', 'text/json'),
|
||||||
|
'pem' => array('application/x-x509-user-cert', 'application/x-pem-file', 'application/octet-stream'),
|
||||||
|
'p10' => array('application/x-pkcs10', 'application/pkcs10'),
|
||||||
|
'p12' => 'application/x-pkcs12',
|
||||||
|
'p7a' => 'application/x-pkcs7-signature',
|
||||||
|
'p7c' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
|
||||||
|
'p7m' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
|
||||||
|
'p7r' => 'application/x-pkcs7-certreqresp',
|
||||||
|
'p7s' => 'application/pkcs7-signature',
|
||||||
|
'crt' => array('application/x-x509-ca-cert', 'application/x-x509-user-cert', 'application/pkix-cert'),
|
||||||
|
'crl' => array('application/pkix-crl', 'application/pkcs-crl'),
|
||||||
|
'der' => 'application/x-x509-ca-cert',
|
||||||
|
'kdb' => 'application/octet-stream',
|
||||||
|
'pgp' => 'application/pgp',
|
||||||
|
'gpg' => 'application/gpg-keys',
|
||||||
|
'sst' => 'application/octet-stream',
|
||||||
|
'csr' => 'application/octet-stream',
|
||||||
|
'rsa' => 'application/x-pkcs7',
|
||||||
|
'cer' => array('application/pkix-cert', 'application/x-x509-ca-cert'),
|
||||||
|
'3g2' => 'video/3gpp2',
|
||||||
|
'3gp' => array('video/3gp', 'video/3gpp'),
|
||||||
|
'mp4' => 'video/mp4',
|
||||||
|
'm4a' => 'audio/x-m4a',
|
||||||
|
'f4v' => array('video/mp4', 'video/x-f4v'),
|
||||||
|
'flv' => 'video/x-flv',
|
||||||
|
'webm' => 'video/webm',
|
||||||
|
'aac' => 'audio/x-acc',
|
||||||
|
'm4u' => 'application/vnd.mpegurl',
|
||||||
|
'm3u' => 'text/plain',
|
||||||
|
'xspf' => 'application/xspf+xml',
|
||||||
|
'vlc' => 'application/videolan',
|
||||||
|
'wmv' => array('video/x-ms-wmv', 'video/x-ms-asf'),
|
||||||
|
'au' => 'audio/x-au',
|
||||||
|
'ac3' => 'audio/ac3',
|
||||||
|
'flac' => 'audio/x-flac',
|
||||||
|
'ogg' => array('audio/ogg', 'video/ogg', 'application/ogg'),
|
||||||
|
'kmz' => array('application/vnd.google-earth.kmz', 'application/zip', 'application/x-zip'),
|
||||||
|
'kml' => array('application/vnd.google-earth.kml+xml', 'application/xml', 'text/xml'),
|
||||||
|
'ics' => 'text/calendar',
|
||||||
|
'ical' => 'text/calendar',
|
||||||
|
'zsh' => 'text/x-scriptzsh',
|
||||||
|
'7zip' => array('application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'),
|
||||||
|
'cdr' => array('application/cdr', 'application/coreldraw', 'application/x-cdr', 'application/x-coreldraw', 'image/cdr', 'image/x-cdr', 'zz-application/zz-winassoc-cdr'),
|
||||||
|
'wma' => array('audio/x-ms-wma', 'video/x-ms-asf'),
|
||||||
|
'jar' => array('application/java-archive', 'application/x-java-application', 'application/x-jar', 'application/x-compressed'),
|
||||||
|
'svg' => array('image/svg+xml', 'application/xml', 'text/xml'),
|
||||||
|
'vcf' => 'text/x-vcard',
|
||||||
|
'srt' => array('text/srt', 'text/plain'),
|
||||||
|
'vtt' => array('text/vtt', 'text/plain'),
|
||||||
|
'ico' => array('image/x-icon', 'image/x-ico', 'image/vnd.microsoft.icon')
|
||||||
|
);
|
||||||
|
|
Loading…
Reference in a new issue