修复文件上传接口返回错误路径的问题

This commit is contained in:
Yutousama 2022-01-28 20:28:32 +08:00
parent c7bcce309b
commit 100f1e3511

View File

@ -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) {