#20230529 欣影管理平台拍照时间表代码

master
18616268358 2 years ago
parent 9252a7ea2e
commit 99e27a0fa7

@ -25,7 +25,7 @@ public class UploadUtils
public static String upload(MultipartFile file,String path) throws IOException {
String fileName = file.getOriginalFilename();
String newName = UUID.randomUUID().toString()+fileName.substring(fileName.indexOf("."));
File saveFile = new File(path,newName);
File saveFile = new File(path+newName);
if(!saveFile.getParentFile().exists()){
saveFile.getParentFile().mkdirs();
}

Loading…
Cancel
Save