This commit is contained in:
hejinbo
2023-11-29 16:25:26 +08:00
parent 7bcb28cdac
commit 7c665da605
@@ -2844,15 +2844,15 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
return AjaxResult.error("请选择要上传的文件");
}
UUID uuid = UUID.randomUUID();
//String targetPath = "/home/ruoyi/uploadPath/upload/unzipFile/"+uuid+ "/";
String targetPath = "D:/home/unzip/" + uuid + "/";
String targetPath = "/home/ruoyi/uploadPath/upload/unzipFile/"+uuid+ "/";
// String targetPath = "D:/home/unzip/" + uuid + "/";
File zipFile = null;
InputStream ins = null;
try {
ins = file.getInputStream();
//上传的压缩包保存的路径
//String savePath = "/home/ruoyi/uploadPath/upload/zipFile/";
String savePath = "D:/home/zipFile/";
String savePath = "/home/ruoyi/uploadPath/upload/zipFile/";
// String savePath = "D:/home/zipFile/";
String saveName = uuid + "_" + file.getOriginalFilename();
zipFile = new File(savePath + saveName);
inputChangeToFile(ins, zipFile);