修改
This commit is contained in:
+4
-4
@@ -2844,15 +2844,15 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|||||||
return AjaxResult.error("请选择要上传的文件");
|
return AjaxResult.error("请选择要上传的文件");
|
||||||
}
|
}
|
||||||
UUID uuid = UUID.randomUUID();
|
UUID uuid = UUID.randomUUID();
|
||||||
//String targetPath = "/home/ruoyi/uploadPath/upload/unzipFile/"+uuid+ "/";
|
String targetPath = "/home/ruoyi/uploadPath/upload/unzipFile/"+uuid+ "/";
|
||||||
String targetPath = "D:/home/unzip/" + uuid + "/";
|
// String targetPath = "D:/home/unzip/" + uuid + "/";
|
||||||
File zipFile = null;
|
File zipFile = null;
|
||||||
InputStream ins = null;
|
InputStream ins = null;
|
||||||
try {
|
try {
|
||||||
ins = file.getInputStream();
|
ins = file.getInputStream();
|
||||||
//上传的压缩包保存的路径
|
//上传的压缩包保存的路径
|
||||||
//String savePath = "/home/ruoyi/uploadPath/upload/zipFile/";
|
String savePath = "/home/ruoyi/uploadPath/upload/zipFile/";
|
||||||
String savePath = "D:/home/zipFile/";
|
// String savePath = "D:/home/zipFile/";
|
||||||
String saveName = uuid + "_" + file.getOriginalFilename();
|
String saveName = uuid + "_" + file.getOriginalFilename();
|
||||||
zipFile = new File(savePath + saveName);
|
zipFile = new File(savePath + saveName);
|
||||||
inputChangeToFile(ins, zipFile);
|
inputChangeToFile(ins, zipFile);
|
||||||
|
|||||||
Reference in New Issue
Block a user