4 Replies Latest reply on Jan 2, 2007 6:17 PM by BKBK

    CFFTP to send file browsed by form?

    rinorman
      Greetings and happy New Year.

      I want a user to be able to browse to a file on their local machine then FTP it to their folder on my server.

      I have the form code as:

      <form action="ftpfile.cfm" method="post" enctype="multipart/form-data" name="upload">
      <p><input type="file" name="imagefile"></p>
      <p><input type="submit" value=" Upload "></p>

      </form>

      Then the action page:

      <cfftp action="PUTFILE"
      server="000.000.000.00"
      username="theirusername"
      password="theirpassword"
      passive="Yes"
      localfile="#form.imagefile#"
      remotefile="/theirfolder/#form.imagefile#"
      transfermode="AUTO"
      port="0000">

      <p>File Uploaded!</p>

      No errors, but no file is transferred.

      Any help?

      Thanks-

      rinorman