Commit eb5e51b6 authored by 廖旭伟's avatar 廖旭伟

增加综窗接口文件预览功能

parent 06cb069a
...@@ -459,8 +459,8 @@ public class SyntheticalController extends BaseJsonBodyController { ...@@ -459,8 +459,8 @@ public class SyntheticalController extends BaseJsonBodyController {
String filePath = rootPath + "temp/" + fileName; String filePath = rootPath + "temp/" + fileName;
OutputStream outputStream = null; OutputStream outputStream = null;
File file = new File(filePath); File file = new File(filePath);
if (file.exists()) { if (!file.exists() && !file.isDirectory()) {
file.delete(); file.mkdirs();
} }
outputStream = new FileOutputStream(file); outputStream = new FileOutputStream(file);
outputStream.write(data); outputStream.write(data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment