|
|
|
@@ -144,13 +144,11 @@ func GetModelChunks(ctx *context.Context) { |
|
|
|
if dbmodeluuid != modeluuid { |
|
|
|
log.Info("The file has uploaded.fileChunk.ObjectName=" + fileChunk.ObjectName + " typeCloudBrain=" + fmt.Sprint(typeCloudBrain)) |
|
|
|
isExist := copyModelAttachmentFile(typeCloudBrain, fileChunk, fileName, modeluuid) |
|
|
|
if dbmodeluuid != "" { |
|
|
|
model, err := models.QueryModelById(dbmodeluuid) |
|
|
|
if isExist { |
|
|
|
model, err := models.QueryModelById(modeluuid) |
|
|
|
if err == nil && model != nil { |
|
|
|
modelname = model.Name |
|
|
|
} |
|
|
|
} |
|
|
|
if isExist { |
|
|
|
ctx.JSON(200, map[string]string{ |
|
|
|
"uuid": fileChunk.UUID, |
|
|
|
"uploaded": strconv.Itoa(fileChunk.IsUploaded), |
|
|
|
|