| @@ -814,6 +814,9 @@ func CompleteMultipart(ctx *context.Context) { | |||||
| typeCloudBrain := ctx.QueryInt("type") | typeCloudBrain := ctx.QueryInt("type") | ||||
| fileName := ctx.Query("file_name") | fileName := ctx.Query("file_name") | ||||
| log.Warn("uuid:" + uuid) | |||||
| log.Warn("typeCloudBrain:" + strconv.Itoa(typeCloudBrain)) | |||||
| err := checkTypeCloudBrain(typeCloudBrain) | err := checkTypeCloudBrain(typeCloudBrain) | ||||
| if err != nil { | if err != nil { | ||||
| ctx.ServerError("checkTypeCloudBrain failed", err) | ctx.ServerError("checkTypeCloudBrain failed", err) | ||||
| @@ -852,6 +855,7 @@ func CompleteMultipart(ctx *context.Context) { | |||||
| return | return | ||||
| } | } | ||||
| dataset, _ := models.GetDatasetByID(ctx.QueryInt64("dataset_id")) | dataset, _ := models.GetDatasetByID(ctx.QueryInt64("dataset_id")) | ||||
| log.Warn("insert attachment to datasetId:" + strconv.FormatInt(dataset.ID, 10)) | |||||
| attachment, err := models.InsertAttachment(&models.Attachment{ | attachment, err := models.InsertAttachment(&models.Attachment{ | ||||
| UUID: uuid, | UUID: uuid, | ||||
| UploaderID: ctx.User.ID, | UploaderID: ctx.User.ID, | ||||