From 37263304fa1fa6c34b3161d56d444d0870b079f8 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Fri, 2 Feb 2024 16:02:20 +0500 Subject: [PATCH] core: fix attachment mime type on read --- packages/core/src/collections/attachments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }