|
@@ -42,7 +42,7 @@ class UploadController : BaseController() {
|
|
|
CheckStatus.FILE_EXISTS,
|
|
|
CheckStatus.NO_FILE_FULL_CHUNK -> {
|
|
|
// 文件存在
|
|
|
- ret.info = fileMetadata
|
|
|
+ ret.info = ret.file
|
|
|
}
|
|
|
CheckStatus.NO_FILE_FRAG_CHUNK -> {
|
|
|
}
|
|
@@ -70,7 +70,7 @@ class UploadController : BaseController() {
|
|
|
when (uploadResult.status) {
|
|
|
// 单文件完成,插入数据库
|
|
|
UploadStatus.UPLOADED -> {
|
|
|
- uploadResult.info = fileMetadata
|
|
|
+ uploadResult.info = uploadResult.file
|
|
|
}
|
|
|
}
|
|
|
ResponseEntity.ok(uploadResult)
|