From 57806f9bd50bba3659466eae6edf3ff9adaced89 Mon Sep 17 00:00:00 2001 From: punto <119956578+AshrithSathu@users.noreply.github.com> Date: Fri, 23 Jan 2026 13:38:47 +0530 Subject: [PATCH] [GIT-45] fix: allow markdown file attachments (#8524) * fix: allow markdown file attachments - Add text/markdown to ATTACHMENT_MIME_TYPES - Fixes issue where .md files were rejected with 'Invalid file type' error * added the support for frontend mime type too --- apps/api/plane/settings/common.py | 1 + packages/editor/src/core/constants/config.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/api/plane/settings/common.py b/apps/api/plane/settings/common.py index 8b94ee44e3..0ef605ba1f 100644 --- a/apps/api/plane/settings/common.py +++ b/apps/api/plane/settings/common.py @@ -380,6 +380,7 @@ ATTACHMENT_MIME_TYPES = [ "application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.presentationml.presentation", "text/plain", + "text/markdown", "application/rtf", "application/vnd.oasis.opendocument.spreadsheet", "application/vnd.oasis.opendocument.text", diff --git a/packages/editor/src/core/constants/config.ts b/packages/editor/src/core/constants/config.ts index cdca814592..1a9b15a953 100644 --- a/packages/editor/src/core/constants/config.ts +++ b/packages/editor/src/core/constants/config.ts @@ -26,6 +26,7 @@ export const ACCEPTED_ATTACHMENT_MIME_TYPES = [ "application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.presentationml.presentation", "text/plain", + "text/markdown", "application/rtf", "audio/mpeg", "audio/wav",