ariesy 修改导出的格式为application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

release
yefei 2 years ago
parent 9632acbc79
commit 3431db15c9
  1. 2
      dxhy-core/src/main/java/com/dxhy/core/controller/FtpDownloadController.java

@ -97,7 +97,7 @@ public class FtpDownloadController extends AbstractController {
if ("1".equals(serviceType)) {
response.setContentType(this.getContentType(fileName));
} else {
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"));

Loading…
Cancel
Save