update onlyoffice接口

This commit is contained in:
lijiarao
2023-09-14 17:13:17 +08:00
parent a6fbc88f8a
commit 909ccd8297
@@ -139,7 +139,7 @@ public class BusProcessModelHisServiceImpl extends ServiceImpl<BusProcessModelHi
try {
File file = new File(filePath + path);
inputStream = new BufferedInputStream(new FileInputStream(file));
//response.addHeader("Content-Disposition", "attachment;fileName=" + new String(fileName.getBytes("UTF-8"),"iso-8859-1"));
response.addHeader("Content-Disposition", "attachment;fileName=" + new String(file.getName().getBytes("UTF-8"),"iso-8859-1"));
response.setContentType("application/force-download");// 设置强制下载不打开
outputStream = response.getOutputStream();
byte[] buf = new byte[1024];