Skip to content

Commit

Permalink
🎨 #10666
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Mar 20, 2024
1 parent 580209b commit d522a74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/model/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d522a74

Please sign in to comment.