From d522a74654530f8730f087d0ce26792284f49e0e Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Wed, 20 Mar 2024 23:21:26 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/10666 --- kernel/model/upload.go | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/model/upload.go b/kernel/model/upload.go index acd2291b2e2..ad57efe60b6 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)