forked from github/dataease
fix(数据集): 上传excel数据失败
This commit is contained in:
parent
73f106743f
commit
d825f49da3
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user