Download file

Hi:

I’ve been searching around the forum and I haven’t seen a simple way to download a file from a server, where when pushing a button, I get a browser save as window asking me where to download a file, with the only parameters are the path and the file name…Sorry if my question is too simple, but is there a way to do this in a simple way?

regards, and than you very much…

You can use the server-side Window.open method to trigger a download. One drawback of this technique is however that it is likely to cause the browser to display some security warnings.

It is usually better to show a link to the actual file instead as this doesn’t trigger the same warnings.