|
|
|
@@ -630,6 +630,11 @@ func GetSuccessChunks(ctx *context.Context) { |
|
|
|
isExist := false |
|
|
|
if typeCloudBrain == models.TypeCloudBrainOne { |
|
|
|
isExist, err = storage.Attachments.HasObject(getCloudOneMinioPrefix(scene, fileChunk)) |
|
|
|
if isExist { |
|
|
|
log.Info("The file is exist in minio. has uploaded.") |
|
|
|
} else { |
|
|
|
log.Info("The file is not exist in minio..") |
|
|
|
} |
|
|
|
if err != nil { |
|
|
|
ctx.ServerError("HasObject failed", err) |
|
|
|
return |
|
|
|
@@ -641,6 +646,11 @@ func GetSuccessChunks(ctx *context.Context) { |
|
|
|
oldFileName = oldAttachment.Name |
|
|
|
} |
|
|
|
isExist, err = storage.ObsHasObject(getCloudTwoOBSPrefix(scene, fileChunk, oldFileName)) |
|
|
|
if isExist { |
|
|
|
log.Info("The file is exist in obs. has uploaded.") |
|
|
|
} else { |
|
|
|
log.Info("The file is not exist in obs.") |
|
|
|
} |
|
|
|
if err != nil { |
|
|
|
ctx.ServerError("ObsHasObject failed", err) |
|
|
|
return |
|
|
|
|