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

cfftp GetFile ?

Community Beginner ,
Jun 06, 2006 Jun 06, 2006

Copy link to clipboard

Copied

Am I missing something with the cfftp tag?
I'm assuming that the localfile attribute is referring to the user's computer? So if a user clicks a form button to "get the file", and the processing script looks like this:

<cfftp
connection = "theConnection"
action = "getFile"
transferMode = "binary"
localFile = "C:\seminartest\seminars.mdb"
remoteFile = "D:\websites\domainnamehere\htdocs\clients\seminars\seminars.mdb"
failifexists = "no">

shouldn't the remote file be downloaded to the user's C: drive in the directory specified?

When I do this I get an error:
The cause of this exception was that: C:\seminartest\seminars.mdb (The system cannot find the path specified).

But the directory and the file in it do exist.

Thanks! You guys are great,
Al
TOPICS
Advanced techniques

Views

529

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
Mentor ,
Jun 06, 2006 Jun 06, 2006

Copy link to clipboard

Copied

The localFile attribute refers to the CF server, not the client, and remoteFile refers to the far end computer.

Phil

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
Jun 06, 2006 Jun 06, 2006

Copy link to clipboard

Copied

To transfer a file from the users computer (client) to the server, use <CFFILE ACTION="upload" ...>

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
Engaged ,
Jun 07, 2006 Jun 07, 2006

Copy link to clipboard

Copied

LATEST
yep, CFFTP is for server > server action only

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