mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 22:05:44 +01:00
unified file and image upload WIP
This commit is contained in:
@@ -162,10 +162,7 @@ function saveImageToAttachment(noteId, uploadBuffer, originalName, shrinkImageSw
|
||||
});
|
||||
});
|
||||
|
||||
return {
|
||||
attachment,
|
||||
url: `api/attachments/${attachment.attachmentId}/image/${encodeURIComponent(fileName)}`
|
||||
};
|
||||
return attachment;
|
||||
}
|
||||
|
||||
async function shrinkImage(buffer, originalName) {
|
||||
|
||||
Reference in New Issue
Block a user