Generating CSV files for download to clients computer in a (monorail) web app

I have written a web app using monrail web framework http://www.castleproject.org/monorail/index.html. It generates reports, and displays them on the browser as well as converting this to a csv. Currently that csv file is generated and stored on the webserver, this is no good. What I need to know is how to get that csv file to download onto the clients machine.
LVL 3
gscull01Asked:
Who is Participating?
 
Steve BinkConnect With a Mentor Commented:
You can't generate a file on the user's machine.  You need to offer a link to the user to download the created file from the server.  If you want automation, you can push the file to user by forwarding them to the URL.
0
 
gscull01Author Commented:
Can anyone help, I don't suppose it is too difficult lots of web-apps have this functionality. Bascially, all I need is for a csv file to be generated that will save on the users machine. If someone can give a general answer on the approach I will be able to tailor it to my specific framework/language.

Many thanks!
0
 
gscull01Author Commented:
It's the automation part I am interested in. How can I push the file to the user?
0
 
gscull01Author Commented:
Thanks for your input!
0
All Courses

From novice to tech pro — start learning today.