update onlyoffice接口
This commit is contained in:
+1
-1
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user