From 6b0732c99bd5a9ba18caa9c8a9481918c5e74d9f Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 22 Feb 2026 17:37:50 +0800 Subject: [PATCH] :bug: https://github.com/siyuan-note/siyuan/issues/17079#issuecomment-3940571835 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 767d851c4..f88ac48c3 100644 --- a/kernel/model/upload.go +++ b/kernel/model/upload.go @@ -104,7 +104,7 @@ func InsertLocalAssets(id string, assetAbsPaths []string, isUpload bool) (succMa } if "" != existAssetPath && !strings.HasPrefix(hash, "random_") { - succMap[baseName] = existAssetPath + succMap[baseName] = strings.TrimPrefix(existAssetPath, "/") } else { fName = util.AssetName(fName, ast.NewNodeID()) writePath := filepath.Join(assetsDirPath, fName)