|
|
|
|
@ -24,11 +24,13 @@ |
|
|
|
|
* Array mapping file extensions to mimetypes (in alphabetical order). |
|
|
|
|
*/ |
|
|
|
|
return array( |
|
|
|
|
'accdb'=>'application/msaccess', |
|
|
|
|
'7z' => 'application/x-7z-compressed', |
|
|
|
|
'accdb' => 'application/msaccess', |
|
|
|
|
'ai' => 'application/illustrator', |
|
|
|
|
'avi'=>'video/x-msvideo', |
|
|
|
|
'avi' => 'video/x-msvideo', |
|
|
|
|
'bash' => 'text/x-shellscript', |
|
|
|
|
'blend'=>'application/x-blender', |
|
|
|
|
'blend' => 'application/x-blender', |
|
|
|
|
'bin' => 'application/x-bin', |
|
|
|
|
'cb7' => 'application/x-cbr', |
|
|
|
|
'cba' => 'application/x-cbr', |
|
|
|
|
'cbr' => 'application/x-cbr', |
|
|
|
|
@ -38,81 +40,91 @@ return array( |
|
|
|
|
'cc' => 'text/x-c', |
|
|
|
|
'cdr' => 'application/coreldraw', |
|
|
|
|
'cpp' => 'text/x-c++src', |
|
|
|
|
'css'=>'text/css', |
|
|
|
|
'css' => 'text/css', |
|
|
|
|
'csv' => 'text/csv', |
|
|
|
|
'cvbdl' => 'application/x-cbr', |
|
|
|
|
'c' => 'text/x-c', |
|
|
|
|
'c++' => 'text/x-c++src', |
|
|
|
|
'doc'=>'application/msword', |
|
|
|
|
'docx'=>'application/vnd.openxmlformats-officedocument.wordprocessingml.document', |
|
|
|
|
'dot'=>'application/msword', |
|
|
|
|
'dotx'=>'application/vnd.openxmlformats-officedocument.wordprocessingml.template', |
|
|
|
|
'dv'=>'video/dv', |
|
|
|
|
'deb' => 'application/x-deb', |
|
|
|
|
'doc' => 'application/msword', |
|
|
|
|
'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', |
|
|
|
|
'dot' => 'application/msword', |
|
|
|
|
'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', |
|
|
|
|
'dv' => 'video/dv', |
|
|
|
|
'eot' => 'application/vnd.ms-fontobject', |
|
|
|
|
'epub' => 'application/epub+zip', |
|
|
|
|
'exe'=>'application/x-ms-dos-executable', |
|
|
|
|
'flac'=>'audio/flac', |
|
|
|
|
'gif'=>'image/gif', |
|
|
|
|
'gz'=>'application/x-gzip', |
|
|
|
|
'gzip'=>'application/x-gzip', |
|
|
|
|
'html'=>'text/html', |
|
|
|
|
'htm'=>'text/html', |
|
|
|
|
'ical'=>'text/calendar', |
|
|
|
|
'ics'=>'text/calendar', |
|
|
|
|
'exe' => 'application/x-ms-dos-executable', |
|
|
|
|
'flac' => 'audio/flac', |
|
|
|
|
'gif' => 'image/gif', |
|
|
|
|
'gz' => 'application/x-gzip', |
|
|
|
|
'gzip' => 'application/x-gzip', |
|
|
|
|
'html' => 'text/html', |
|
|
|
|
'htm' => 'text/html', |
|
|
|
|
'ical' => 'text/calendar', |
|
|
|
|
'ics' => 'text/calendar', |
|
|
|
|
'impress' => 'text/impress', |
|
|
|
|
'jpeg'=>'image/jpeg', |
|
|
|
|
'jpg'=>'image/jpeg', |
|
|
|
|
'js'=>'application/javascript', |
|
|
|
|
'keynote'=>'application/x-iwork-keynote-sffkey', |
|
|
|
|
'kra'=>'application/x-krita', |
|
|
|
|
'm2t'=>'video/mp2t', |
|
|
|
|
'm4v'=>'video/mp4', |
|
|
|
|
'jpeg' => 'image/jpeg', |
|
|
|
|
'jpg' => 'image/jpeg', |
|
|
|
|
'js' => 'application/javascript', |
|
|
|
|
'json' => 'application/json', |
|
|
|
|
'keynote' => 'application/x-iwork-keynote-sffkey', |
|
|
|
|
'kra' => 'application/x-krita', |
|
|
|
|
'm2t' => 'video/mp2t', |
|
|
|
|
'm4v' => 'video/mp4', |
|
|
|
|
'markdown' => 'text/markdown', |
|
|
|
|
'mdown' => 'text/markdown', |
|
|
|
|
'md' => 'text/markdown', |
|
|
|
|
'mdb'=>'application/msaccess', |
|
|
|
|
'mdb' => 'application/msaccess', |
|
|
|
|
'mdwn' => 'text/markdown', |
|
|
|
|
'mobi' => 'application/x-mobipocket-ebook', |
|
|
|
|
'mov'=>'video/quicktime', |
|
|
|
|
'mp3'=>'audio/mpeg', |
|
|
|
|
'mp4'=>'video/mp4', |
|
|
|
|
'mpeg'=>'video/mpeg', |
|
|
|
|
'mpg'=>'video/mpeg', |
|
|
|
|
'msi'=>'application/x-msi', |
|
|
|
|
'numbers'=>'application/x-iwork-numbers-sffnumbers', |
|
|
|
|
'odg'=>'application/vnd.oasis.opendocument.graphics', |
|
|
|
|
'odp'=>'application/vnd.oasis.opendocument.presentation', |
|
|
|
|
'ods'=>'application/vnd.oasis.opendocument.spreadsheet', |
|
|
|
|
'odt'=>'application/vnd.oasis.opendocument.text', |
|
|
|
|
'oga'=>'audio/ogg', |
|
|
|
|
'ogg'=>'audio/ogg', |
|
|
|
|
'ogv'=>'video/ogg', |
|
|
|
|
'pages'=>'application/x-iwork-pages-sffpages', |
|
|
|
|
'pdf'=>'application/pdf', |
|
|
|
|
'php'=>'application/x-php', |
|
|
|
|
'pl'=>'application/x-pearl', |
|
|
|
|
'png'=>'image/png', |
|
|
|
|
'ppt'=>'application/mspowerpoint', |
|
|
|
|
'pptx'=>'application/vnd.openxmlformats-officedocument.presentationml.presentation', |
|
|
|
|
'psd'=>'application/x-photoshop', |
|
|
|
|
'py'=>'text/x-script.python', |
|
|
|
|
'mov' => 'video/quicktime', |
|
|
|
|
'mp3' => 'audio/mpeg', |
|
|
|
|
'mp4' => 'video/mp4', |
|
|
|
|
'mpeg' => 'video/mpeg', |
|
|
|
|
'mpg' => 'video/mpeg', |
|
|
|
|
'msi' => 'application/x-msi', |
|
|
|
|
'numbers' => 'application/x-iwork-numbers-sffnumbers', |
|
|
|
|
'odg' => 'application/vnd.oasis.opendocument.graphics', |
|
|
|
|
'odp' => 'application/vnd.oasis.opendocument.presentation', |
|
|
|
|
'ods' => 'application/vnd.oasis.opendocument.spreadsheet', |
|
|
|
|
'odt' => 'application/vnd.oasis.opendocument.text', |
|
|
|
|
'oga' => 'audio/ogg', |
|
|
|
|
'ogg' => 'audio/ogg', |
|
|
|
|
'ogv' => 'video/ogg', |
|
|
|
|
'otf' => 'font/opentype', |
|
|
|
|
'pages' => 'application/x-iwork-pages-sffpages', |
|
|
|
|
'pdf' => 'application/pdf', |
|
|
|
|
'php' => 'application/x-php', |
|
|
|
|
'pl' => 'application/x-perl', |
|
|
|
|
'png' => 'image/png', |
|
|
|
|
'ppt' => 'application/mspowerpoint', |
|
|
|
|
'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', |
|
|
|
|
'psd' => 'application/x-photoshop', |
|
|
|
|
'py' => 'text/x-python', |
|
|
|
|
'rar' => 'application/x-rar-compressed', |
|
|
|
|
'reveal' => 'text/reveal', |
|
|
|
|
'sgf' => 'application/sgf', |
|
|
|
|
'sh-lib' => 'text/x-shellscript', |
|
|
|
|
'sh' => 'text/x-shellscript', |
|
|
|
|
'svg'=>'image/svg+xml', |
|
|
|
|
'tar'=>'application/x-tar', |
|
|
|
|
'tar.gz'=>'application/x-compressed', |
|
|
|
|
'tgz'=>'application/x-compressed', |
|
|
|
|
'tiff'=>'image/tiff', |
|
|
|
|
'tif'=>'image/tiff', |
|
|
|
|
'txt'=>'text/plain', |
|
|
|
|
'svg' => 'image/svg+xml', |
|
|
|
|
'swf' => 'application/x-shockwave-flash', |
|
|
|
|
'tar' => 'application/x-tar', |
|
|
|
|
'tar.gz' => 'application/x-compressed', |
|
|
|
|
'tex' => 'application/x-tex', |
|
|
|
|
'tgz' => 'application/x-compressed', |
|
|
|
|
'tiff' => 'image/tiff', |
|
|
|
|
'tif' => 'image/tiff', |
|
|
|
|
'ttf' => 'application/x-font-ttf', |
|
|
|
|
'txt' => 'text/plain', |
|
|
|
|
'vcard' => 'text/vcard', |
|
|
|
|
'vcf' => 'text/vcard', |
|
|
|
|
'wav'=>'audio/wav', |
|
|
|
|
'webm'=>'video/webm', |
|
|
|
|
'wmv'=>'video/x-ms-asf', |
|
|
|
|
'xcf'=>'application/x-gimp', |
|
|
|
|
'xls'=>'application/msexcel', |
|
|
|
|
'xlsx'=>'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', |
|
|
|
|
'xml'=>'application/xml', |
|
|
|
|
'zip'=>'application/zip', |
|
|
|
|
'wav' => 'audio/wav', |
|
|
|
|
'webm' => 'video/webm', |
|
|
|
|
'woff' => 'application/font-woff', |
|
|
|
|
'wmv' => 'video/x-ms-asf', |
|
|
|
|
'xcf' => 'application/x-gimp', |
|
|
|
|
'xls' => 'application/msexcel', |
|
|
|
|
'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', |
|
|
|
|
'xml' => 'application/xml', |
|
|
|
|
'zip' => 'application/zip', |
|
|
|
|
); |
|
|
|
|
|