mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
pasted images should have trimmed names if too long (too often it's just garbage), closes #2307
This commit is contained in:
@@ -38,7 +38,7 @@ function uploadImage(req) {
|
||||
return [400, "Unknown image type: " + file.mimetype];
|
||||
}
|
||||
|
||||
const {url} = imageService.saveImage(noteId, file.buffer, file.originalname, true);
|
||||
const {url} = imageService.saveImage(noteId, file.buffer, file.originalname, true, true);
|
||||
|
||||
return {
|
||||
uploaded: true,
|
||||
|
||||
Reference in New Issue
Block a user