I am trying to create a button on my website that will allow a user to downlaod a .csv file. I currently have the site hit the server and the server generates a string of text which is in the format of a csv file. I am not sure where to proceed. Do i save this string to a file on the server and then send the file to the client (I would prefer not to create files on the server side) or do i send the client the string of text and then create the file on the client side? I would like the button to function as a user would expect a download button to work (ie a they are given a choice as to where to save the file and a progress bar shows the progress f the file download)
I am using Nodejs and express on the server side.