From 7f44ffb61c9a0785e6722eb4b12044972c79538b Mon Sep 17 00:00:00 2001 From: Arya Rizky Date: Mon, 11 May 2026 19:43:46 +0700 Subject: [PATCH] fix: add missing Office macro-enabled MIME types to file allowlist Add support for Microsoft Office macro-enabled and binary formats: - Excel: .xlsb, .xlsm, .xltm, .xlam - PowerPoint: .pptm, .ppsm, .potm, .ppam - Word: .docm, .dotm Fixes #9038 --- apps/api/plane/settings/common.py | 11 +++++++++++ packages/editor/src/core/constants/config.ts | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/apps/api/plane/settings/common.py b/apps/api/plane/settings/common.py index d90ee10f891..15223559f13 100644 --- a/apps/api/plane/settings/common.py +++ b/apps/api/plane/settings/common.py @@ -400,6 +400,17 @@ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.presentationml.presentation", + # Microsoft Office macro-enabled and binary formats + "application/vnd.ms-excel.sheet.binary.macroEnabled.12", + "application/vnd.ms-excel.sheet.macroEnabled.12", + "application/vnd.ms-excel.template.macroEnabled.12", + "application/vnd.ms-excel.addin.macroEnabled.12", + "application/vnd.ms-powerpoint.presentation.macroEnabled.12", + "application/vnd.ms-powerpoint.slideshow.macroEnabled.12", + "application/vnd.ms-powerpoint.template.macroEnabled.12", + "application/vnd.ms-powerpoint.addin.macroEnabled.12", + "application/vnd.ms-word.document.macroEnabled.12", + "application/vnd.ms-word.template.macroEnabled.12", "text/plain", "text/markdown", "application/rtf", diff --git a/packages/editor/src/core/constants/config.ts b/packages/editor/src/core/constants/config.ts index 64508e63e0a..c9ebf9ffe8f 100644 --- a/packages/editor/src/core/constants/config.ts +++ b/packages/editor/src/core/constants/config.ts @@ -31,6 +31,17 @@ export const ACCEPTED_ATTACHMENT_MIME_TYPES = [ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.presentationml.presentation", + // Microsoft Office macro-enabled and binary formats + "application/vnd.ms-excel.sheet.binary.macroEnabled.12", + "application/vnd.ms-excel.sheet.macroEnabled.12", + "application/vnd.ms-excel.template.macroEnabled.12", + "application/vnd.ms-excel.addin.macroEnabled.12", + "application/vnd.ms-powerpoint.presentation.macroEnabled.12", + "application/vnd.ms-powerpoint.slideshow.macroEnabled.12", + "application/vnd.ms-powerpoint.template.macroEnabled.12", + "application/vnd.ms-powerpoint.addin.macroEnabled.12", + "application/vnd.ms-word.document.macroEnabled.12", + "application/vnd.ms-word.template.macroEnabled.12", "text/plain", "text/markdown", "application/rtf",