mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
core: fix attachment mime type on read
This commit is contained in:
committed by
Abdullah Atta
parent
e96ba80583
commit
37263304fa
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user