Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMihai Varga <mihai.mv13@gmail.com>2015-10-29 21:25:43 +0300
committerMihai Varga <mihai.mv13@gmail.com>2015-10-29 21:26:03 +0300
commit916336cf8cdc61b0e614f8cdefedcdc41e255131 (patch)
tree0b417aaab924feaea2bcd61aee7022f2f1da4996 /lib
parent9be8e63a7110eff57707ae9dae4f8512c334c8f7 (diff)
added more mimetypes to the owncloud app
Diffstat (limited to 'lib')
-rw-r--r--lib/storage.php18
1 files changed, 16 insertions, 2 deletions
diff --git a/lib/storage.php b/lib/storage.php
index 8241a2b5..8217d60d 100644
--- a/lib/storage.php
+++ b/lib/storage.php
@@ -25,7 +25,21 @@
namespace OCA\Documents;
class Storage {
- const MIMETYPE_LIBREOFFICE_WORDPROCESSOR = 'application/vnd.oasis.opendocument.text';
+ public static $MIMETYPE_LIBREOFFICE_WORDPROCESSOR = array(
+ 'application/vnd.oasis.opendocument.text',
+ 'application/vnd.oasis.opendocument.presentation',
+ 'application/vnd.oasis.opendocument.spreadhseet',
+ 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
+ 'application/vnd.lotus-wordpro',
+ 'image/svg+xml',
+ 'application/vnd.ms-powerpoint',
+ 'application/vnd.ms-excel',
+ 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
+ 'application/pdf',
+ 'application/vnd.visio',
+ 'application/vnd.wordperfect',
+ 'application/vnd.oasis.opendocument.graphics'
+ );
public static function getDocuments() {
$list = array_filter(
@@ -99,7 +113,7 @@ class Storage {
public static function getSupportedMimetypes(){
return array_merge(
- array(self::MIMETYPE_LIBREOFFICE_WORDPROCESSOR),
+ self::$MIMETYPE_LIBREOFFICE_WORDPROCESSOR,
Filter::getAll()
);
}