mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
saving image
This commit is contained in:
@@ -47,9 +47,7 @@ async function uploadImage(req) {
|
||||
mime: 'text/html'
|
||||
});
|
||||
|
||||
const {fileName, imageId} = await imageService.saveImage(file, null, note.noteId);
|
||||
|
||||
const url = `/api/images/${imageId}/${fileName}`;
|
||||
const {url} = await imageService.saveImage(file, null, note.noteId);
|
||||
|
||||
const content = `<img src="${url}"/>`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user