mirror of
https://github.com/makeplane/plane.git
synced 2026-02-24 04:00:14 +01:00
[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:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user