Merge remote-tracking branch 'origin/master'

This commit is contained in:
wangzhijiang
2024-03-06 16:23:30 +08:00
2 changed files with 16 additions and 10 deletions
@@ -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);