All the Internet clambered, help. The algorithm is as follows:

  1. The person enters the data in the form on the catalog request
  2. It sends to the page ( Thanks for the application )
  3. Without closing this page ( Thanks for the application ) should pop up a window with a proposal to save the file.
  • the idea is almost the same as uploading ajax image to the server - Lieutenant Jim Dangle
  • @LieutenantJimDangle, ??? - Qwertiy

1 answer 1

From the second page to make the transition to the file, do not forget to specify the content-disposition attachment. There will be no transition if the browser sees the header.