|
|
|
@ -97,8 +97,9 @@ public class FtpDownloadController extends AbstractController { |
|
|
|
|
if ("1".equals(serviceType)) { |
|
|
|
|
response.setContentType(this.getContentType(fileName)); |
|
|
|
|
} else { |
|
|
|
|
response.setContentType("application/octet-stream"); |
|
|
|
|
response.setContentType("application/vnd.ms-excel"); |
|
|
|
|
// response.setContentType("application/octet-stream");
|
|
|
|
|
// response.setContentType("application/vnd.ms-excel");
|
|
|
|
|
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); |
|
|
|
|
} |
|
|
|
|
response.setHeader("Content-disposition", |
|
|
|
|
"attachment; filename=" + new String(fileName.getBytes(StandardCharsets.UTF_8), "ISO8859-1")); |
|
|
|
|