修复文件上传接口返回错误路径的问题
This commit is contained in:
parent
c7bcce309b
commit
100f1e3511
@ -238,9 +238,8 @@ public class Tools {
|
||||
}
|
||||
}
|
||||
file.transferTo(saveFile);
|
||||
fileName = URLEncoder.encode(fileName, "UTF-8");
|
||||
System.out.println("上传文件保存路径:" + saveFile.getAbsolutePath());
|
||||
return path + fileName;
|
||||
return saveFile.getAbsolutePath();
|
||||
}
|
||||
|
||||
public static void download(String url, DownloadInterface downloadInterface) {
|
||||
|
Loading…
Reference in New Issue
Block a user