diff options
author | Mihai Varga <mihai.mv13@gmail.com> | 2015-10-29 21:25:43 +0300 |
---|---|---|
committer | Mihai Varga <mihai.mv13@gmail.com> | 2015-10-29 21:26:03 +0300 |
commit | 916336cf8cdc61b0e614f8cdefedcdc41e255131 (patch) | |
tree | 0b417aaab924feaea2bcd61aee7022f2f1da4996 | |
parent | 9be8e63a7110eff57707ae9dae4f8512c334c8f7 (diff) |
added more mimetypes to the owncloud app
-rw-r--r-- | lib/storage.php | 18 |
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() ); } |