Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/10666

Danield522a7465453
diff --git a/kernel/model/upload.go b/kernel/model/upload.go
index acd2291b2e..ad57efe60b 100644
--- a/kernel/model/upload.go
+++ b/kernel/model/upload.go
@@ -188,6 +188,7 @@ func Upload(c *gin.Context) {
succMap[baseName] = existAsset.Path
} else {
if skipIfDuplicated {
+ // https://github.com/siyuan-note/siyuan/issues/10666
matches, globErr := filepath.Glob(assetsDirPath + string(os.PathSeparator) + strings.TrimSuffix(fName, ext) + "*")
if nil != globErr {
logging.LogErrorf("glob failed: %s", globErr)