Browse Source

#1352

fix bug
tags/V1.22.3.1^2
chenyifan01 4 years ago
parent
commit
79e9f0da10
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      routers/repo/attachment.go

+ 4
- 0
routers/repo/attachment.go View File

@@ -512,6 +512,10 @@ func GetSuccessChunks(ctx *context.Context) {
return
}
} else {
oldAttachment, _ := models.GetAttachmentByUUID(fileChunk.UUID)
if oldAttachment != nil {
fileName = oldAttachment.Name
}
isExist, err = storage.ObsHasObject(setting.BasePath + models.AttachmentRelativePath(fileChunk.UUID) + "/" + fileName)
if err != nil {
ctx.ServerError("ObsHasObject failed", err)


Loading…
Cancel
Save