Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

core: fix attachment mime type on read

Abdullah Attab377329a8bb8
diff --git a/packages/core/src/collections/attachments.js b/packages/core/src/collections/attachments.js
index 9129fa928..0778e5790 100644
--- a/packages/core/src/collections/attachments.js
+++ b/packages/core/src/collections/attachments.js
@@ -296,7 +296,7 @@ export default class Attachments extends Collection {
if (!data) return;
return outputType === "base64"
- ? dataurl.fromObject({ type: "application/octet-stream", data })
+ ? dataurl.fromObject({ type: attachment.metadata.type, data })
: data;
}