diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-05-30 18:31:38 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-05-30 18:31:38 +0300 |
commit | 27d94e99151bf6fcc8fea2b3693b7fb0954dd89d (patch) | |
tree | b322f7a0dccbf7fc366378a43de5af40a17316b3 /lib | |
parent | 9ce5703d228f28bb0581044cf30cbf07d5d319da (diff) |
Allow ms office templates
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/TemplateManager.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/TemplateManager.php b/lib/TemplateManager.php index d7bc0d1b..06113733 100644 --- a/lib/TemplateManager.php +++ b/lib/TemplateManager.php @@ -58,13 +58,19 @@ class TemplateManager { /** Accepted templates mime types */ const MIMES_DOCUMENTS = [ - 'application/vnd.oasis.opendocument.text-template' + 'application/vnd.oasis.opendocument.text-template', + 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', + 'application/msword' ]; const MIMES_SHEETS = [ - 'application/vnd.oasis.opendocument.spreadsheet-template' + 'application/vnd.oasis.opendocument.spreadsheet-template', + 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', + 'application/vnd.ms-excel' ]; const MIMES_PRESENTATIONS = [ - 'application/vnd.oasis.opendocument.presentation-template' + 'application/vnd.oasis.opendocument.presentation-template', + 'application/vnd.openxmlformats-officedocument.presentationml.template', + 'application/vnd.ms-powerpoint' ]; /** @var array Template mime types match */ |