1 Reply Latest reply on Aug 26, 2007 7:40 AM by BKBK

    file download

      i am trying to have a download file area.

      i have some files on my server with i need to give user the ability to download

      can i just have a onclick to download the file?

      i am not sure what syntax to use to download a file from a server location?
        • 1. Re: file download
          BKBK Adobe Community Professional & MVP
          On any page you can put a link to downloadPage.cfm. The following example enables the client to download a Word document stored on the server. C:\downloads\essential_sun_tzu.doc is the path of the file on the server and art_of_war.doc is the name of the file at the client end.

          <cfheader name="Content-Disposition" value="attachment; filename=art_of_war.doc">
          <cfcontent type="application/msword" file="c:\downloads\essential_sun_tzu.doc" deletefile="no">