之前是用:
response.setHeader("Content-disposition", "attachment;filename=" + filedownload );
修改如下(把filename用双引号引起来)就解决了:
response.setHeader("Content-disposition", "attachment;filename=\"" + filedownload + "\"");
之前是用:
response.setHeader("Content-disposition", "attachment;filename=" + filedownload );
修改如下(把filename用双引号引起来)就解决了:
response.setHeader("Content-disposition", "attachment;filename=\"" + filedownload + "\"");