Merge pull request #5022 from nextcloud/backport/5021/stable32

[stable32] fix(Templates): like MS docs, also include OpenDocument docs in templates
This commit is contained in:
Elizabeth Danzberger 2025-09-12 10:42:34 -04:00 committed by GitHub
commit f27a56573b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,21 +30,25 @@ class TemplateManager {
/** Accepted templates mime types */
public const MIMES_DOCUMENTS = [
'application/vnd.oasis.opendocument.text-template',
'application/vnd.oasis.opendocument.text',
'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
'application/msword'
];
public const MIMES_SHEETS = [
'application/vnd.oasis.opendocument.spreadsheet-template',
'application/vnd.oasis.opendocument.spreadsheet',
'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
'application/vnd.ms-excel'
];
public const MIMES_PRESENTATIONS = [
'application/vnd.oasis.opendocument.presentation-template',
'application/vnd.oasis.opendocument.presentation',
'application/vnd.openxmlformats-officedocument.presentationml.template',
'application/vnd.ms-powerpoint'
];
public const MIMES_DRAWINGS = [
'application/vnd.oasis.opendocument.graphics-template',
'application/vnd.oasis.opendocument.graphics',
];
/** @var array Template mime types match */