修复前端上传文件两次弹框
This commit is contained in:
@@ -83,7 +83,8 @@ public class UpLoadController {
|
||||
String uploadUrl = serverProperties.getFilePath() + "upload/";
|
||||
String filename = imageFile.getOriginalFilename();
|
||||
File dir = new File(uploadUrl);
|
||||
if (!dir.exists()) {//判断目录是否存在,否则自动创建
|
||||
//判断目录是否存在,否则自动创建
|
||||
if (!dir.exists()) {
|
||||
dir.mkdirs();
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user