diff --git a/src/main/java/com/lq/cms/web/sys/UserController.java b/src/main/java/com/lq/cms/web/sys/UserController.java index ce0caa6..3b8530a 100644 --- a/src/main/java/com/lq/cms/web/sys/UserController.java +++ b/src/main/java/com/lq/cms/web/sys/UserController.java @@ -155,7 +155,6 @@ public class UserController { String fileType = FileUtil.fileFormat(multipartFile.getOriginalFilename()); newFileName = "user/"+uuid.toString()+"."+fileType; File newFile = new File(FILE_LOAD_PATH +newFileName); - if (!newFile.exists()){ newFile.mkdirs(); } @@ -165,7 +164,6 @@ public class UserController { e.printStackTrace(); } } - return newFileName; }