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-02-19 19:27:38 +04:00
|
|
|
'7z' => 'application/x-7z-compressed',
|
2014-02-19 19:28:29 +04:00
|
|
|
'accdb' => 'application/msaccess',
|
2014-01-23 05:15:42 +04:00
|
|
|
'ai' => 'application/illustrator',
|
2014-02-19 19:28:29 +04:00
|
|
|
'avi' => 'video/x-msvideo',
|
2014-01-23 05:15:42 +04:00
|
|
|
'bash' => 'text/x-shellscript',
|
2014-02-19 19:28:29 +04:00
|
|
|
'blend' => 'application/x-blender',
|
2014-02-19 19:27:38 +04:00
|
|
|
'bin' => 'application/x-bin',
|
2014-02-27 17:39:16 +04:00
|
|
|
'bmp' => 'image/bmp',
|
2014-02-17 23:48:32 +04:00
|
|
|
'cb7' => 'application/x-cbr',
|
|
|
|
'cba' => 'application/x-cbr',
|
|
|
|
'cbr' => 'application/x-cbr',
|
|
|
|
'cbt' => 'application/x-cbr',
|
|
|
|
'cbtc' => 'application/x-cbr',
|
|
|
|
'cbz' => 'application/x-cbr',
|
2014-01-23 05:15:42 +04:00
|
|
|
'cc' => 'text/x-c',
|
|
|
|
'cdr' => 'application/coreldraw',
|
|
|
|
'cpp' => 'text/x-c++src',
|
2014-02-19 19:28:29 +04:00
|
|
|
'css' => 'text/css',
|
2014-02-20 13:34:40 +04:00
|
|
|
'csv' => 'text/csv',
|
2014-02-17 23:48:32 +04:00
|
|
|
'cvbdl' => 'application/x-cbr',
|
2014-01-23 05:15:42 +04:00
|
|
|
'c' => 'text/x-c',
|
|
|
|
'c++' => 'text/x-c++src',
|
2014-02-19 19:27:38 +04:00
|
|
|
'deb' => 'application/x-deb',
|
2014-02-19 19:28:29 +04:00
|
|
|
'doc' => 'application/msword',
|
|
|
|
'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
|
|
'dot' => 'application/msword',
|
|
|
|
'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
|
|
|
|
'dv' => 'video/dv',
|
2014-02-19 19:27:38 +04:00
|
|
|
'eot' => 'application/vnd.ms-fontobject',
|
2014-01-23 05:15:42 +04:00
|
|
|
'epub' => 'application/epub+zip',
|
2014-02-19 19:28:29 +04:00
|
|
|
'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',
|
2014-01-23 05:15:42 +04:00
|
|
|
'impress' => 'text/impress',
|
2014-02-19 19:28:29 +04:00
|
|
|
'jpeg' => 'image/jpeg',
|
|
|
|
'jpg' => 'image/jpeg',
|
|
|
|
'js' => 'application/javascript',
|
2014-02-19 19:27:38 +04:00
|
|
|
'json' => 'application/json',
|
2014-02-19 19:28:29 +04:00
|
|
|
'keynote' => 'application/x-iwork-keynote-sffkey',
|
|
|
|
'kra' => 'application/x-krita',
|
|
|
|
'm2t' => 'video/mp2t',
|
|
|
|
'm4v' => 'video/mp4',
|
2014-01-23 05:15:42 +04:00
|
|
|
'markdown' => 'text/markdown',
|
|
|
|
'mdown' => 'text/markdown',
|
|
|
|
'md' => 'text/markdown',
|
2014-02-19 19:28:29 +04:00
|
|
|
'mdb' => 'application/msaccess',
|
2014-01-23 05:15:42 +04:00
|
|
|
'mdwn' => 'text/markdown',
|
2014-03-19 20:45:20 +04:00
|
|
|
'mkv' => 'video/x-matroska',
|
2014-01-23 05:15:42 +04:00
|
|
|
'mobi' => 'application/x-mobipocket-ebook',
|
2014-02-19 19:28:29 +04:00
|
|
|
'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',
|
2014-02-20 13:34:40 +04:00
|
|
|
'pl' => 'application/x-perl',
|
2014-02-19 19:28:29 +04:00
|
|
|
'png' => 'image/png',
|
|
|
|
'ppt' => 'application/mspowerpoint',
|
|
|
|
'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
|
|
|
'psd' => 'application/x-photoshop',
|
|
|
|
'py' => 'text/x-python',
|
2014-02-19 19:27:38 +04:00
|
|
|
'rar' => 'application/x-rar-compressed',
|
2014-01-23 05:15:42 +04:00
|
|
|
'reveal' => 'text/reveal',
|
|
|
|
'sgf' => 'application/sgf',
|
|
|
|
'sh-lib' => 'text/x-shellscript',
|
|
|
|
'sh' => 'text/x-shellscript',
|
2014-02-19 19:28:29 +04:00
|
|
|
'svg' => 'image/svg+xml',
|
2014-02-19 19:27:38 +04:00
|
|
|
'swf' => 'application/x-shockwave-flash',
|
2014-02-19 19:28:29 +04:00
|
|
|
'tar' => 'application/x-tar',
|
|
|
|
'tar.gz' => 'application/x-compressed',
|
2014-02-20 13:34:40 +04:00
|
|
|
'tex' => 'application/x-tex',
|
2014-02-19 19:28:29 +04:00
|
|
|
'tgz' => 'application/x-compressed',
|
|
|
|
'tiff' => 'image/tiff',
|
|
|
|
'tif' => 'image/tiff',
|
|
|
|
'ttf' => 'application/x-font-ttf',
|
|
|
|
'txt' => 'text/plain',
|
2014-01-23 05:15:42 +04:00
|
|
|
'vcard' => 'text/vcard',
|
|
|
|
'vcf' => 'text/vcard',
|
2014-02-19 19:28:29 +04:00
|
|
|
'wav' => 'audio/wav',
|
|
|
|
'webm' => 'video/webm',
|
2014-02-19 19:27:38 +04:00
|
|
|
'woff' => 'application/font-woff',
|
2014-02-19 19:28:29 +04:00
|
|
|
'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',
|
2011-07-17 17:22:04 +04:00
|
|
|
);
|