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