Skip to content

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

:bug: https://github.com/siyuan-note/siyuan/issues/17880

Daniel823ae327b84e
diff --git a/kernel/model/upload.go b/kernel/model/upload.go
index 3c64e8d3d8..726fd8dc45 100644
--- a/kernel/model/upload.go
+++ b/kernel/model/upload.go
@@ -70,7 +70,7 @@ func InsertLocalAssets(id string, assetAbsPaths []string, isUpload bool) (succMa
if gulu.File.IsSubPath(assetsDirPath, assetAbsPath) {
// 已经位于 assets 目录下的资源文件不处理
// Dragging a file from the assets folder into the editor causes the kernel to exit https://github.com/siyuan-note/siyuan/issues/15355
- succMap[baseName] = "assets/" + fName
+ succMap[baseName] = "assets/" + baseName
continue
}