fix: 修复 OSS 上传完成状态更新
This commit is contained in:
@@ -41,7 +41,7 @@ func CompleteUpload(ctx *gin.Context) {
|
|||||||
Updates(map[string]any{
|
Updates(map[string]any{
|
||||||
"status": models.FileStatusReady,
|
"status": models.FileStatusReady,
|
||||||
"actual_size": objectInfo.Size,
|
"actual_size": objectInfo.Size,
|
||||||
"etag": objectInfo.ETag,
|
"e_tag": objectInfo.ETag,
|
||||||
"completed_at": completedAt,
|
"completed_at": completedAt,
|
||||||
})
|
})
|
||||||
if result.Error != nil {
|
if result.Error != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user