1、处理下载大文件不完整问题

master
xiong_cl 7 months ago
parent d3ded6de26
commit 00b44bb993
  1. 2
      shandan-common/src/main/java/com/keyware/shandan/common/util/FileDownload.java

@ -58,7 +58,7 @@ public class FileDownload {
response.reset();
response.setContentType("application/octet-stream");
response.setCharacterEncoding("utf-8");
response.setContentLength((int) file.length());
response.setContentLengthLong(file.length());
if (!StringUtils.hasText(fileName)) {
fileName = file.getName();