Merge remote-tracking branch 'origin/master'
This commit is contained in:
+1
-1
@@ -462,7 +462,7 @@ public class OnlyOfficeController {
|
||||
response.setCharacterEncoding(StandardCharsets.UTF_8.name());
|
||||
response.setHeader("Content-Disposition", "attachment;filename=\"" + fileOldName + "\"");
|
||||
response.setContentType("application/octet-stream");
|
||||
File file = new File(filePath + ossFile.getUrl() + ossFile.getFileName());
|
||||
File file = new File(filePath + ossFile.getUrl());
|
||||
is = new FileInputStream(file);
|
||||
os = response.getOutputStream();
|
||||
IOUtils.copy(is, os);
|
||||
|
||||
Reference in New Issue
Block a user