From 51d643c78010d955631fc1a9eadfad857e145e70 Mon Sep 17 00:00:00 2001 From: Sara Vieira Date: Wed, 13 Aug 2025 13:09:02 +0100 Subject: [PATCH] chore: default type to text/plain (#4993) Signed-off-by: Sara Vieira Co-authored-by: boojack --- .../MemoEditor/ActionButton/UploadAttachmentButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/MemoEditor/ActionButton/UploadAttachmentButton.tsx b/web/src/components/MemoEditor/ActionButton/UploadAttachmentButton.tsx index bbb59d2ca..5f49f5693 100644 --- a/web/src/components/MemoEditor/ActionButton/UploadAttachmentButton.tsx +++ b/web/src/components/MemoEditor/ActionButton/UploadAttachmentButton.tsx @@ -52,7 +52,7 @@ const UploadAttachmentButton = observer((props: Props) => { attachment: Attachment.fromPartial({ filename, size, - type: type || mime.getType(filename) || "", + type: type || mime.getType(filename) || "text/plain", content: buffer, }), attachmentId: "",