<?php
if (! defined ( 'BASEPATH' ))
    exit ( 'No direct script access allowed' );
    /*
| -------------------------------------------------------------------
| MIME TYPES
| -------------------------------------------------------------------
| This file contains an array of mime types.  It is used by the
| Upload class to help identify allowed file types.
|
*/

#$mimes = array ('hqx' => 'application/mac-binhex40', 'cpt' => 'application/mac-compactpro', 'csv' => array ('text/x-comma-separated-values', 'application/vnd.ms-excel' ), 'bin' => 'application/macbinary', 'dms' => 'application/octet-stream', 'lha' => 'application/octet-stream', 'lzh' => 'application/octet-stream', 'exe' => 'application/octet-stream', 'class' => 'application/octet-stream', 'psd' => 'application/x-photoshop', 'so' => 'application/octet-stream', 'sea' => 'application/octet-stream', 'dll' => 'application/octet-stream', 'oda' => 'application/oda', 'pdf' => array ('application/pdf', 'application/x-download' ), 'ai' => 'application/postscript', 'eps' => 'application/postscript', 'ps' => 'application/postscript', 'smi' => 'application/smil', 'smil' => 'application/smil', 'mif' => 'application/vnd.mif', 'xls' => array ('application/excel', 'application/vnd.ms-excel' ), 'ppt' => 'application/powerpoint', 'wbxml' => 'application/wbxml', 'wmlc' => 'application/wmlc', 'dcr' => 'application/x-director', 'dir' => 'application/x-director', 'dxr' => 'application/x-director', 'dvi' => 'application/x-dvi', 'gtar' => 'application/x-gtar', 'gz' => 'application/x-gzip', 'php' => 'application/x-httpd-php', 'php4' => 'application/x-httpd-php', 'php3' => 'application/x-httpd-php', 'phtml' => 'application/x-httpd-php', 'phps' => 'application/x-httpd-php-source', 'js' => 'application/x-javascript', 'swf' => 'application/x-shockwave-flash', 'sit' => 'application/x-stuffit', 'tar' => 'application/x-tar', 'tgz' => 'application/x-tar', 'xhtml' => 'application/xhtml+xml', 'xht' => 'application/xhtml+xml', 'zip' => array ('application/x-zip', 'application/zip', 'application/x-zip-compressed' ), 'mid' => 'audio/midi', 'midi' => 'audio/midi', 'mpga' => 'audio/mpeg', 'mp2' => 'audio/mpeg', 'mp3' => 'audio/mpeg', 'aif' => 'audio/x-aiff', 'aiff' => 'audio/x-aiff', 'aifc' => 'audio/x-aiff', 'ram' => 'audio/x-pn-realaudio', 'rm' => 'audio/x-pn-realaudio', 'rpm' => 'audio/x-pn-realaudio-plugin', 'ra' => 'audio/x-realaudio', 'rv' => 'video/vnd.rn-realvideo', 'wav' => 'audio/x-wav', 'bmp' => 'image/bmp', 'gif' => 'image/gif', 'jpeg' => array ('image/jpeg', 'image/pjpeg' ), 'jpg' => array ('image/jpeg', 'image/pjpeg' ), 'jpe' => array ('image/jpeg', 'image/pjpeg' ), 'png' => array ('image/png', 'image/x-png' ), 'tiff' => 'image/tiff', 'tif' => 'image/tiff', 'css' => 'text/css', 'html' => 'text/html', 'htm' => 'text/html', 'shtml' => 'text/html', 'txt' => 'text/plain', 'text' => 'text/plain', 'log' => array ('text/plain', 'text/x-log' ), 'rtx' => 'text/richtext', 'rtf' => 'text/rtf', 'xml' => 'text/xml', 'xsl' => 'text/xml', 'mpeg' => 'video/mpeg', 'mpg' => 'video/mpeg', 'mpe' => 'video/mpeg', 'qt' => 'video/quicktime', 'mov' => 'video/quicktime', 'avi' => 'video/x-msvideo', 'movie' => 'video/x-sgi-movie', 'doc' => 'application/msword', 'word' => array ('application/msword', 'application/octet-stream' ), 'xl' => 'application/excel', 'eml' => 'message/rfc822' );
$mimes = array (    'php' => 'text/plain',
                    'xls' => 'application/excel',
                    'jar' => 'application/java-archive',
                    'pot' => 'application/mspowerpoint',
                    'pps' => 'application/mspowerpoint',
                    'ppt' => 'application/mspowerpoint',
                    'doc' => array('application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'),
                    'docx' => array('application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'),
                    'pdf' => array('application/pdf', '"application/pdf"', '\"application/pdf\"'),
                    'rtf' => 'application/rtf',
                    'xls' => 'application/vnd.ms-excel',
                    'gz' => 'application/x-gunzip',
                    'gz' => 'application/x-gzip',
                    'js' => array('application/x-javascript','application/javascript'),
                    'rar' => array( 'application/x-rar',
                                    'application/x-rar-compressed',
                                    'application/octet-stream'),
                    'swf' => 'application/x-shockwave-flash',
                    'tar.gz' => 'application/x-tar-gz',
                    'tgz' => 'application/x-tar-gz',
                    'tar' => 'application/x-tar',
                    'zip' => array( 'application/x-zip',
                                    'application/zip', 'application/x-zip-compressed' ),
                    'kar' => 'audio/midi',
                    'mid' => 'audio/midi',
                    'midi' => 'audio/midi',
                    'mp3' => array('audio/mpeg', 'audio/mp3'),
                    'm3u' => 'audio/x-mpegurl',
                    'wma' => 'audio/x-ms-wma',
                    'rpm' => 'audio/x-pn-realaudio-plugin',
                    'ram' => 'audio/x-pn-realaudio',
                    'rm' => 'audio/x-pn-realaudio',
                    'ra' => 'audio/x-realaudio',
                    'wav' => 'audio/x-wav',
                    'gif' => array('image/gif', 'image/x-png'),
                    'jpeg' => array('image/jpeg', 'image/pjpeg'),
                    'jpg' => array( 'image/jpeg', 'image/pjpeg'),
                    'png' => 'image/png',
                    'tif' => array( 'image/tiff', 'image/pjpeg'),
                    'tiff' => 'image/tiff',
                    'css' => 'text/css',
                    'htm' => 'text/html',
                    'html' => 'text/html',
                    'txt' => 'text/plain',
                    'pem' => 'application/octet-stream',
                    'rtx' => 'text/richtext',
                    'rtf' => 'text/rtf',
                    'jad' => 'text/vnd.sun.j2me.app-descriptor',
                    'xml' => 'text/xml',
                    'flv' => array('video/flv', 'video/x-flv', 'application/octet-stream'),
                    'mp2' => 'video/mpeg',
                    'mpeg' => 'video/mpeg',
                    'mpg' => 'video/mpeg',
                    'wmv' => 'video/x-ms-wmv',
                    "mp3" => array('audio/mpeg', 'audio/mp3', 'application/download'),
                    'bmp' => array( 'image/bmp', 'image/pjpeg'),
                    'avi' => 'video/x-msvideo',
                    'movie' => 'video/x-sgi-movie',
                    'csv' => array( 'text/x-comma-separated-values',
                                    '"text/x-comma-separated-values"',
                                    '\"text/x-comma-separated-values\"',
                                    'text/comma-separated-values',
                                    'application/vnd.ms-excel',
                                    'application/octet-stream',
                                    'application/vnd.msexcel',
                                    'application/csv',
                                    'application/excel',
                                    'text/plain',
                                    'text/csv',
                                    'text/html'),
                    'epub' => 'application/zip'
           );
?>