From e17236b44072dbba216446fd05cfaa4be94ba42c Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 22 Feb 2026 11:14:52 +0800 Subject: [PATCH] :bug: Fix https://github.com/siyuan-note/siyuan/issues/17079 Signed-off-by: Daniel <845765@qq.com> --- kernel/model/upload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/upload.go b/kernel/model/upload.go index 01ad50291..767d851c4 100644 --- a/kernel/model/upload.go +++ b/kernel/model/upload.go @@ -225,7 +225,7 @@ func Upload(c *gin.Context) { } if "" != existAssetPath && !strings.HasPrefix(hash, "random_") { - succMap[baseName] = existAssetPath + succMap[baseName] = strings.TrimPrefix(existAssetPath, "/") } else { if skipIfDuplicated { // 复制 PDF 矩形注解时不再重复插入图片 No longer upload image repeatedly when copying PDF rectangle annotation https://github.com/siyuan-note/siyuan/issues/10666