From ed27dbcf4b7a2128904ff79ecaa93d6f11414857 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 24 Mar 2023 16:33:17 +0100 Subject: [PATCH] add open office formats to get_extension --- inc/inc.Utils.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/inc.Utils.php b/inc/inc.Utils.php index 35c9df96d..444cded70 100644 --- a/inc/inc.Utils.php +++ b/inc/inc.Utils.php @@ -651,6 +651,9 @@ function get_extension($mimetype) { /* {{{ */ case 'application/postscript': return '.ps'; case 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': return '.docx'; case 'application/vnd.openxmlformats-officedocument.presentationml.presentation': return '.pptx'; + case 'application/vnd.oasis.opendocument.text': return '.odt'; + case 'application/vnd.oasis.opendocument.spreadsheet': return '.ods'; + case 'application/vnd.oasis.opendocument.presentation': return '.odp'; case 'text/plain': return '.txt'; case 'text/csv': return '.csv'; case 'text/rtf': return '.rtf';