|
|
|
@ -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(); |
|
|
|
|