Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Fix https://github.com/siyuan-note/siyuan/issues/17079

Daniele17236b44072
diff --git a/kernel/model/upload.go b/kernel/model/upload.go
index 01ad502918..767d851c4a 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