i m tryin to save a xml file using
send_data( out_data, :type => “text/xml”, filename => “sample.xml” )
“out_data” is the string instance that contains the generated XML,
“text/xml” is the mime type to be set in the response, and
“sample.xml” is the filename that will be presented to the client as
the name of the
file it attempts to download.
Where i m stuck is , the sample.xml is getting downloaded on desktop.
i want to ask the user to provide the location where he wants to
download the “sample.xml”.
i also used browse button to ask location and then send that location
to the filename parameter, in dat case the downloaded file is renamed
and even then the file is saved on the desktop.
plz help me solve this problem. …thanks