2011-07-17 17:22:04 +04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* ownCloud
|
|
|
|
*
|
|
|
|
* @author Robin Appelman
|
|
|
|
* @copyright 2011 Robin Appelman icewind1991@gmail.com
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 3 of the License, or any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Affero General Public
|
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2014-01-23 05:15:42 +04:00
|
|
|
* Array mapping file extensions to mimetypes (in alphabetical order).
|
2011-07-17 17:22:04 +04:00
|
|
|
*/
|
|
|
|
return array(
|
2014-01-23 06:06:14 +04:00
|
|
|
'accdb'=>'application/msaccess',
|
2014-01-23 05:15:42 +04:00
|
|
|
'ai' => 'application/illustrator',
|
|
|
|
'avi'=>'video/x-msvideo',
|
|
|
|
'bash' => 'text/x-shellscript',
|
|
|
|
'blend'=>'application/x-blender',
|
|
|
|
'cc' => 'text/x-c',
|
|
|
|
'cdr' => 'application/coreldraw',
|
|
|
|
'cpp' => 'text/x-c++src',
|
2011-07-17 17:22:04 +04:00
|
|
|
'css'=>'text/css',
|
2014-01-23 05:15:42 +04:00
|
|
|
'c' => 'text/x-c',
|
|
|
|
'c++' => 'text/x-c++src',
|
|
|
|
'doc'=>'application/msword',
|
|
|
|
'docx'=>'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
2014-01-23 05:46:05 +04:00
|
|
|
'dot'=>'application/msword',
|
|
|
|
'dotx'=>'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
|
2014-01-23 05:15:42 +04:00
|
|
|
'dv'=>'video/dv',
|
|
|
|
'epub' => 'application/epub+zip',
|
|
|
|
'exe'=>'application/x-ms-dos-executable',
|
2011-07-17 17:22:04 +04:00
|
|
|
'flac'=>'audio/flac',
|
|
|
|
'gif'=>'image/gif',
|
|
|
|
'gz'=>'application/x-gzip',
|
2014-01-23 05:15:42 +04:00
|
|
|
'gzip'=>'application/x-gzip',
|
2011-07-17 17:22:04 +04:00
|
|
|
'html'=>'text/html',
|
|
|
|
'htm'=>'text/html',
|
2011-10-03 14:16:06 +04:00
|
|
|
'ical'=>'text/calendar',
|
2014-01-23 05:15:42 +04:00
|
|
|
'ics'=>'text/calendar',
|
|
|
|
'impress' => 'text/impress',
|
2011-07-17 17:22:04 +04:00
|
|
|
'jpeg'=>'image/jpeg',
|
|
|
|
'jpg'=>'image/jpeg',
|
|
|
|
'js'=>'application/javascript',
|
2014-01-23 05:15:42 +04:00
|
|
|
'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',
|
2014-01-23 06:06:14 +04:00
|
|
|
'mdb'=>'application/msaccess',
|
2014-01-23 05:15:42 +04:00
|
|
|
'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',
|
2011-07-17 17:22:04 +04:00
|
|
|
'oga'=>'audio/ogg',
|
|
|
|
'ogg'=>'audio/ogg',
|
|
|
|
'ogv'=>'video/ogg',
|
2014-01-23 05:15:42 +04:00
|
|
|
'pages'=>'application/x-iwork-pages-sffpages',
|
2011-07-17 17:22:04 +04:00
|
|
|
'pdf'=>'application/pdf',
|
2014-01-23 05:15:42 +04:00
|
|
|
'php'=>'application/x-php',
|
|
|
|
'pl'=>'application/x-pearl',
|
2011-07-17 17:22:04 +04:00
|
|
|
'png'=>'image/png',
|
2014-01-23 05:15:42 +04:00
|
|
|
'ppt'=>'application/mspowerpoint',
|
|
|
|
'pptx'=>'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
|
|
|
'psd'=>'application/x-photoshop',
|
|
|
|
'py'=>'text/x-script.python',
|
|
|
|
'reveal' => 'text/reveal',
|
|
|
|
'sgf' => 'application/sgf',
|
|
|
|
'sh-lib' => 'text/x-shellscript',
|
|
|
|
'sh' => 'text/x-shellscript',
|
2011-07-17 17:22:04 +04:00
|
|
|
'svg'=>'image/svg+xml',
|
|
|
|
'tar'=>'application/x-tar',
|
|
|
|
'tar.gz'=>'application/x-compressed',
|
2014-01-23 05:15:42 +04:00
|
|
|
'tgz'=>'application/x-compressed',
|
2011-07-17 17:22:04 +04:00
|
|
|
'tiff'=>'image/tiff',
|
2014-01-23 05:15:42 +04:00
|
|
|
'tif'=>'image/tiff',
|
2011-07-17 17:22:04 +04:00
|
|
|
'txt'=>'text/plain',
|
2014-01-23 05:15:42 +04:00
|
|
|
'vcard' => 'text/vcard',
|
|
|
|
'vcf' => 'text/vcard',
|
2011-07-17 17:22:04 +04:00
|
|
|
'wav'=>'audio/wav',
|
|
|
|
'webm'=>'video/webm',
|
2012-07-22 03:49:42 +04:00
|
|
|
'wmv'=>'video/x-ms-asf',
|
2014-01-23 05:15:42 +04:00
|
|
|
'xcf'=>'application/x-gimp',
|
2012-07-22 03:49:42 +04:00
|
|
|
'xls'=>'application/msexcel',
|
2013-04-30 03:38:05 +04:00
|
|
|
'xlsx'=>'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
2014-01-23 05:15:42 +04:00
|
|
|
'xml'=>'application/xml',
|
|
|
|
'zip'=>'application/zip',
|
2011-07-17 17:22:04 +04:00
|
|
|
);
|