willsherwood
asked on
HTML content-disposition header equivalent in a URL link
is there any way to format a link to click on such that
it will do a SAVE-AS/OPEN for a CSV file on the server?
i've found Content-Disposition: attachment; filename="<file name.ext>"
but that has to be a part of an HTML file header. My CSV file is generated and sitting on server disk ready for download.
i suppose i could make a PHP wrapper using that header
and then "playback" the CSV text file to be the HTML page contents.
but is there a more elegant way using a link somehow?
it will do a SAVE-AS/OPEN for a CSV file on the server?
i've found Content-Disposition: attachment; filename="<file name.ext>"
but that has to be a part of an HTML file header. My CSV file is generated and sitting on server disk ready for download.
i suppose i could make a PHP wrapper using that header
and then "playback" the CSV text file to be the HTML page contents.
but is there a more elegant way using a link somehow?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yeah, CSV's are funny that way. You need to ensure that a bunch of things are in place in order for them to work cross-browser.
I'm glad you found a resolution to your problem. Thanks for the points!
I'm glad you found a resolution to your problem. Thanks for the points!
ASKER