core: fix attachment mime type on read

This commit is contained in:
Abdullah Atta
2024-02-02 16:02:20 +05:00
committed by Abdullah Atta
parent e96ba80583
commit 37263304fa

View File

@@ -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;
}