Browse Source

又改回

NorthLan 6 years ago
parent
commit
647a7c6b70

+ 2 - 2
zen-web/src/main/kotlin/com/gxzc/zen/web/sys/controller/UploadController.kt

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