• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CFFTP to send file browsed by form?

Guest
Jan 01, 2007 Jan 01, 2007

Copy link to clipboard

Copied

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
TOPICS
Advanced techniques

Views

320

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 01, 2007 Jan 01, 2007

Copy link to clipboard

Copied

Use cffile, not cfftp

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 01, 2007 Jan 01, 2007

Copy link to clipboard

Copied

Use the cffile tag to upload, thus

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 02, 2007 Jan 02, 2007

Copy link to clipboard

Copied

Thanks- but I want them to be able to transfer via FTP to a remote server, not transfer locally.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 02, 2007 Jan 02, 2007

Copy link to clipboard

Copied

LATEST
I want them to be able to transfer via FTP to a remote server, not transfer locally.
Then have them install an FTP client on their machine. The form you intended to use is for cffile uploads.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation