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