From f00c7c27bd4a0fb732ad7a20b558d8c5c3d97ad9 Mon Sep 17 00:00:00 2001 From: alperen ersoy Date: Tue, 25 Jul 2023 15:17:20 +0300 Subject: [PATCH] added missing office types to extension mime type map --- .../file_extension_to_mime_type_map.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/TNEFDecoder/file_extension_to_mime_type_map.php b/src/TNEFDecoder/file_extension_to_mime_type_map.php index f6f61d3..b3841df 100644 --- a/src/TNEFDecoder/file_extension_to_mime_type_map.php +++ b/src/TNEFDecoder/file_extension_to_mime_type_map.php @@ -113,7 +113,11 @@ function get_file_extension_to_mime_type_map() 'dll' => 'application/octet-stream', 'dms' => 'application/octet-stream', 'doc' => 'application/msword', + 'docm' => 'application/vnd.ms-word.document.macroEnabled.12', + 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'dot' => 'application/msword', + 'dotm' => 'application/vnd.ms-word.template.macroEnabled.12', + 'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', 'dp' => 'application/commonground', 'drw' => 'application/drafting', 'dump' => 'application/octet-stream', @@ -354,11 +358,18 @@ function get_file_extension_to_mime_type_map() 'pnm' => 'image/x-portable-anymap', 'pot' => 'application/vnd.ms-powerpoint', 'pot,' => 'application/vnd.ms-powerpoint', + 'potm' => 'application/vnd.ms-powerpoint.template.macroEnabled.12', + 'potx' => 'application/vnd.openxmlformats-officedocument.presentationml.template', 'pov' => 'model/x-pov', 'ppa' => 'application/vnd.ms-powerpoint', + 'ppam' => 'application/vnd.ms-powerpoint.addin.macroEnabled.12', 'ppm' => 'image/x-portable-pixmap', 'pps' => 'application/vnd.ms-powerpoint', + 'ppsm' => 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12', + 'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', 'ppt' => 'application/vnd.ms-powerpoint', + 'pptm' => 'application/vnd.ms-powerpoint.presentation.macroEnabled.12', + 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'ppz' => 'application/mspowerpoint', 'pre' => 'application/x-freelance', 'prf' => 'application/pics-rules', @@ -551,6 +562,7 @@ function get_file_extension_to_mime_type_map() 'xif' => 'image/vnd.xiff', 'xl' => 'application/excel', 'xla' => 'application/vnd.ms-excel', + 'xlam' => 'application/vnd.ms-excel.addin.macroEnabled.12', 'xlb' => 'application/x-excel', 'xlc' => 'application/vnd.ms-excel', 'xld' => 'application/x-excel', @@ -558,7 +570,12 @@ function get_file_extension_to_mime_type_map() 'xll' => 'application/x-excel', 'xlm' => 'application/vnd.ms-excel', 'xls' => 'application/vnd.ms-excel', + 'xlsb' => 'application/vnd.ms-excel.sheet.binary.macroEnabled.12', + 'xlsm' => 'application/vnd.ms-excel.sheet.macroEnabled.12', + 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'xlt' => 'application/vnd.ms-excel', + 'xltm' => 'application/vnd.ms-excel.template.macroEnabled.12', + 'xltx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', 'xlv' => 'application/x-excel', 'xlw' => 'application/vnd.ms-excel', 'xm' => 'audio/xm',