ftp 下载文件到 客户端输出流 文件名却是download
为下载的文件进行命名:
response 设置如下:
response.setContentType("application/x-msdownload");
response.setCharacterEncoding("UTF-8");
response.setHeader("Content-Disposition", "attachment; filename="
+ filename.substring(filename.lastIndexOf("/")+1,filename.length()));