diff --git a/lib/private/helper.php b/lib/private/helper.php index 9b5bf0652ae4b2b8425d1e79be3b4e6c22cdb687..1aab2f296e1f10766e49bd5167291a2fff12acf8 100644 --- a/lib/private/helper.php +++ b/lib/private/helper.php @@ -163,13 +163,17 @@ class OC_Helper { 'application/vnd.ms-fontobject' => 'font', 'application/json' => 'text/code', + 'application/x-perl' => 'text/code', 'application/x-php' => 'text/code', + 'text/x-shellscript' => 'text/code', 'application/xml' => 'text/html', 'text/css' => 'text/code', + 'application/x-tex' => 'text', 'application/x-compressed' => 'package/x-generic', 'application/x-7z-compressed' => 'package/x-generic', 'application/x-deb' => 'package/x-generic', + 'application/x-gzip' => 'package/x-generic', 'application/x-rar-compressed' => 'package/x-generic', 'application/x-tar' => 'package/x-generic', 'application/zip' => 'package/x-generic', @@ -206,6 +210,7 @@ class OC_Helper { 'application/vnd.ms-excel.sheet.binary.macroEnabled.12' => 'x-office/spreadsheet', 'application/vnd.oasis.opendocument.spreadsheet' => 'x-office/spreadsheet', 'application/vnd.oasis.opendocument.spreadsheet-template' => 'x-office/spreadsheet', + 'text/csv' => 'x-office/spreadsheet', 'application/msaccess' => 'database', ); diff --git a/lib/private/mimetypes.list.php b/lib/private/mimetypes.list.php index ff2a7ecc48df20e9aea55b2535b80f4e5748ab9d..9bd07b89023aff45359f668719cc913d817acff4 100644 --- a/lib/private/mimetypes.list.php +++ b/lib/private/mimetypes.list.php @@ -41,6 +41,7 @@ return array( 'cdr' => 'application/coreldraw', 'cpp' => 'text/x-c++src', 'css' => 'text/css', + 'csv' => 'text/csv', 'cvbdl' => 'application/x-cbr', 'c' => 'text/x-c', 'c++' => 'text/x-c++src', @@ -94,7 +95,7 @@ return array( 'pages' => 'application/x-iwork-pages-sffpages', 'pdf' => 'application/pdf', 'php' => 'application/x-php', - 'pl' => 'application/x-pearl', + 'pl' => 'application/x-perl', 'png' => 'image/png', 'ppt' => 'application/mspowerpoint', 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', @@ -109,6 +110,7 @@ return array( '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',