fix loading of string content saved as binary

This commit is contained in:
zadam
2023-06-14 22:21:22 +02:00
parent 8d2958738f
commit 75c6afd1c3
20 changed files with 64 additions and 66 deletions

View File

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