mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 08:15:52 +01:00
fix loading of string content saved as binary
This commit is contained in:
@@ -187,8 +187,6 @@ function importHtml(taskContext, file, parentNote) {
|
||||
function importAttachment(taskContext, file, parentNote) {
|
||||
const mime = mimeService.getMime(file.originalname) || file.mimetype;
|
||||
|
||||
console.log("mime", mime);
|
||||
|
||||
if (mime.startsWith("image/")) {
|
||||
imageService.saveImageToAttachment(parentNote.noteId, file.buffer, file.originalname, taskContext.data.shrinkImages);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user