HTML content-disposition header equivalent in a URL link
Posted on 2013-11-12
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?