新增文件接口

This commit is contained in:
Yutousama 2022-01-28 20:26:20 +08:00
parent bcae613e74
commit 48651c384f

View File

@ -207,8 +207,7 @@ public class AppTools {
} }
} }
file.transferTo(saveFile); file.transferTo(saveFile);
fileName = URLEncoder.encode(fileName, "UTF-8");
System.out.println("上传文件保存路径:" + saveFile.getAbsolutePath()); System.out.println("上传文件保存路径:" + saveFile.getAbsolutePath());
return path + fileName; return saveFile.getAbsolutePath();
} }
} }