bookmark

java - Download file with original file name - Stack Overflow


Description

response.setContentType("application/x-msdownload");
response.setHeader("Content-disposition", "attachment; filename="+ fileName);

Preview

Tags

Users

  • @jil

Comments and Reviews