From 166fe05195e05f6e1fd664aae25bb804ce34f672 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Fri, 5 Aug 2022 10:25:00 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=82=E3=80=82=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/renren/common/controller/FileUploadController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renren-admin/src/main/java/io/renren/common/controller/FileUploadController.java b/renren-admin/src/main/java/io/renren/common/controller/FileUploadController.java index c3409f4a..2da9c575 100644 --- a/renren-admin/src/main/java/io/renren/common/controller/FileUploadController.java +++ b/renren-admin/src/main/java/io/renren/common/controller/FileUploadController.java @@ -39,9 +39,9 @@ public class FileUploadController { @ApiOperation("文件上传") @LogOperation("文件上传") @ApiImplicitParams({ - @ApiImplicitParam(name = "config", value = "文件", paramType = "config", dataType = "config", required = true) + @ApiImplicitParam(name = "file", value = "文件", paramType = "config", dataType = "config", required = true) }) - public Result upload(@RequestParam("config") MultipartFile uploadFile, + public Result upload(@RequestParam("file") MultipartFile uploadFile, HttpServletRequest request) { logger.info("上传文件:{}", uploadFile.getOriginalFilename()); String format = SIMPLE_DATE_FORMAT.format(new Date());