1 Reply Latest reply on Aug 12, 2007 1:39 PM by craigkaminsky


    Level 7
      After making a connection to the ftp host using cfftp, what would you use to
      download a file from the ftp to the web/CF server? I see cffile

      Anyone else have a process to open a connect to the ftp server, download a
      file, and then close the connection? I have the ftp connection established
      and the connect closed. I just need a hint on what to do in the middle.

      Wally Kolcz
      Founder / Developer

        • 1. cfftp
          craigkaminsky Level 3

          To close the connection you can use cfftp action="close" connection="connName"/>

          To download: use action="getfile"

          <cfftp action="getfile" server="servername" username="" password="" remotefile="file.jpg" transfermode="binary" localfile="c:\Inetpub\wwwroot\site\filefolder\file.jpg" connection="myconn" failifexists="no" />

          Hope this helps!