An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/16576#issuecomment-3652567696
Daniel059b0022d0d1
diff --git a/kernel/model/upload.go b/kernel/model/upload.goindex 76f9e9ec74..01ad502918 100644--- a/kernel/model/upload.go+++ b/kernel/model/upload.go@@ -98,7 +98,7 @@ func InsertLocalAssets(id string, assetAbsPaths []string, isUpload bool) (succMaexistAssetPath := GetAssetPathByHash(hash)if "" != existAssetPath {originalName := util.RemoveID(filepath.Base(existAssetPath))- if fName != originalName {+ if strings.ToLower(fName) != strings.ToLower(originalName) {hash = "random_2_" + gulu.Rand.String(12)}}@@ -213,13 +213,13 @@ func Upload(c *gin.Context) {}if 1 > file.Size {- hash = "empty_" + gulu.Rand.String(12)+ hash = "random_1_" + gulu.Rand.String(12)}existAssetPath := GetAssetPathByHash(hash)if "" != existAssetPath {originalName := util.RemoveID(filepath.Base(existAssetPath))- if fName != originalName {+ if strings.ToLower(fName) != strings.ToLower(originalName) {hash = "random_2_" + gulu.Rand.String(12)}}