浏览代码

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

Daniel 1 年之前
父节点
当前提交
d522a74654
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      kernel/model/upload.go

+ 1 - 0
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)