added more mimetypes to the owncloud app
This commit is contained in:
parent
9be8e63a71
commit
916336cf8c
@ -25,7 +25,21 @@
|
|||||||
namespace OCA\Documents;
|
namespace OCA\Documents;
|
||||||
|
|
||||||
class Storage {
|
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() {
|
public static function getDocuments() {
|
||||||
$list = array_filter(
|
$list = array_filter(
|
||||||
@ -99,7 +113,7 @@ class Storage {
|
|||||||
|
|
||||||
public static function getSupportedMimetypes(){
|
public static function getSupportedMimetypes(){
|
||||||
return array_merge(
|
return array_merge(
|
||||||
array(self::MIMETYPE_LIBREOFFICE_WORDPROCESSOR),
|
self::$MIMETYPE_LIBREOFFICE_WORDPROCESSOR,
|
||||||
Filter::getAll()
|
Filter::getAll()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user