add more mimetypes and its extension

This commit is contained in:
Uwe Steinmann 2024-11-05 18:49:35 +01:00
parent 120bb3f572
commit 2676b5db8f

View File

@ -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';