|
|
|
@@ -738,6 +738,7 @@ func NewMultipart(ctx *context.Context) { |
|
|
|
|
|
|
|
fileName := ctx.Query("file_name") |
|
|
|
scene := ctx.Query("scene") |
|
|
|
modeluuid := ctx.Query("modeluuid") |
|
|
|
|
|
|
|
if setting.Attachment.StoreType == storage.MinioStorageType { |
|
|
|
totalChunkCounts := ctx.QueryInt("totalChunkCounts") |
|
|
|
@@ -753,10 +754,7 @@ func NewMultipart(ctx *context.Context) { |
|
|
|
} |
|
|
|
|
|
|
|
uuid := gouuid.NewV4().String() |
|
|
|
modeluuid := "" |
|
|
|
if scene == Attachment_model { |
|
|
|
modeluuid = ctx.Query("modeluuid") |
|
|
|
} |
|
|
|
|
|
|
|
var uploadID string |
|
|
|
var objectName string |
|
|
|
if typeCloudBrain == models.TypeCloudBrainOne { |
|
|
|
@@ -907,8 +905,10 @@ func CompleteMultipart(ctx *context.Context) { |
|
|
|
typeCloudBrain := ctx.QueryInt("type") |
|
|
|
fileName := ctx.Query("file_name") |
|
|
|
scene := ctx.Query("scene") |
|
|
|
modeluuid := ctx.Query("modeluuid") |
|
|
|
|
|
|
|
log.Warn("uuid:" + uuid) |
|
|
|
log.Warn("modeluuid:" + modeluuid) |
|
|
|
log.Warn("scene:" + scene) |
|
|
|
log.Warn("typeCloudBrain:" + strconv.Itoa(typeCloudBrain)) |
|
|
|
|
|
|
|
|