saving image

This commit is contained in:
azivner
2018-11-08 11:08:16 +01:00
parent 21e952a7f0
commit d7afbe4059
9 changed files with 215 additions and 261 deletions

View File

@@ -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}"/>`;