From 2676b5db8fd5cf2af9ff94bf374d5b70e926d99b Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 5 Nov 2024 18:49:35 +0100 Subject: [PATCH] add more mimetypes and its extension --- inc/inc.Utils.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/inc/inc.Utils.php b/inc/inc.Utils.php index c8dd2184d..5449e176b 100644 --- a/inc/inc.Utils.php +++ b/inc/inc.Utils.php @@ -744,17 +744,27 @@ function get_extension($mimetype) { /* {{{ */ case 'application/zip': return '.zip'; case 'application/x-gzip': return '.gz'; case 'application/x-rar': return '.rar'; + case 'application/x-7z-compressed': return '.7z'; case 'application/x-compressed-tar': return '.tgz'; + case 'application/x-tar': return '.tar'; case 'application/x-xopp': return '.xopp'; case 'application/pdf': return '.pdf'; case 'application/dxf': return '.dxf'; case 'application/msword': return '.doc'; + case 'application/vnd.ms-powerpoint': return '.ppt'; + case 'application/vnd.ms-excel': return '.xls'; 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.openxmlformats-officedocument.spreadsheetml.sheet': return '.xlsx'; 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 'application/vnd.apple.pages': return '.pages'; + case 'application/vnd.apple.numbers': return '.numbers'; + case 'application/vnd.apple.keynote': return '.keynote'; + case 'application/vnd.wordperfect': return '.wpd'; + case 'application/vnd.ms-works': return '.wps'; case 'text/plain': return '.txt'; case 'text/csv': return '.csv'; case 'text/rtf': return '.rtf';