소스 검색

: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
 			succMap[baseName] = existAsset.Path
 		} else {
 		} else {
 			if skipIfDuplicated {
 			if skipIfDuplicated {
+				// https://github.com/siyuan-note/siyuan/issues/10666
 				matches, globErr := filepath.Glob(assetsDirPath + string(os.PathSeparator) + strings.TrimSuffix(fName, ext) + "*")
 				matches, globErr := filepath.Glob(assetsDirPath + string(os.PathSeparator) + strings.TrimSuffix(fName, ext) + "*")
 				if nil != globErr {
 				if nil != globErr {
 					logging.LogErrorf("glob failed: %s", globErr)
 					logging.LogErrorf("glob failed: %s", globErr)