[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
This commit is contained in:
punto
2026-01-23 13:38:47 +05:30
committed by GitHub
parent db8b67102d
commit 57806f9bd5
2 changed files with 2 additions and 0 deletions

View File

@@ -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",

View File

@@ -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",