fix(数据集): 上传excel数据失败

This commit is contained in:
taojinlong 2024-04-19 15:53:14 +08:00
parent 73f106743f
commit d825f49da3

View File

@ -2534,7 +2534,7 @@ public class DataSetTableService {
private String saveFile(MultipartFile file, String fileNameUUID) throws Exception {
String filename = file.getOriginalFilename();
String suffix = filename.substring(filename.lastIndexOf(".") + 1);
String dirPath = path + AuthUtils.getUser().getUsername() + "/";
String dirPath = path + Md5Utils.md5(AuthUtils.getUser().getUsername()) + "/";
File p = new File(dirPath);
if (!p.exists()) {
p.mkdirs();