Skip to main content
November 28, 2008
Question

saving an excel file from the server

  • November 28, 2008
  • 1 reply
  • 337 views
hi i have a excel file stored on the webserver, what is the best way do have a onclick which opens up a save as box?

i have tried this but get file not found, but the file is there

<cfheader name="Content-Disposition" value="inline; filename=Template.xls">
<cfcontent type="application/vnd.ms-excel" file="siteurl/Template.xls">
This topic has been closed for replies.

1 reply

Inspiring
November 30, 2008
hi,

the file attribute needs to have an absolute path: "c:\...{somepath}...\template.xls"

cheers,
fober