mirror of
https://github.com/docmost/docmost.git
synced 2026-05-18 23:44:24 +08:00
Add api prefix to attachment nodes
This commit is contained in:
@@ -102,7 +102,7 @@ export const handleImageUpload =
|
||||
if (!attachment) return;
|
||||
|
||||
const node = schema.nodes.image?.create({
|
||||
src: `/files/${attachment.id}/${attachment.fileName}`,
|
||||
src: `/api/files/${attachment.id}/${attachment.fileName}`,
|
||||
attachmentId: attachment.id,
|
||||
title: attachment.fileName,
|
||||
size: attachment.fileSize,
|
||||
|
||||
Reference in New Issue
Block a user