Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: default type to text/plain (#4993)

Sara Vieira51d643c78010
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: "",