0

I have to download the excel file upon the click of button my UI screen.I have used the below responseHeader and responseContentType.

response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-Disposition", "attachment; filename=\""
                    + excelfileName + "\"");

This funcationality works fine for IE and chrome, but not for firefox. For Firefox, it does download the excel but also gives the error on UI. The downloaded file is correct.

enter image description here

Beginner
  • 855
  • 9
  • 21
  • 37
  • Might be helpful. http://stackoverflow.com/questions/2937465/what-is-correct-content-type-for-excel-files – Unknown Jun 08 '16 at 07:18
  • This looks not like a default error message. "Reqest"? It looks like a JavaScript `alert` message. So please show the code which creates that alert. – Axel Richter Jun 08 '16 at 08:44

0 Answers0