Yeah,  You can't use CFFTP to move files between the cfserver and browser.
Only between the FTP server and CF server.  You have to use CFFILE and
CFCONTENT to upload and download from the browser to the server and then
from the server to the FTP server and vice versa.

----- Original Message -----
From: "Andy Ewings" <[EMAIL PROTECTED]>
To: "CFTalk (E-mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, August 22, 2000 5:56 AM
Subject: Problem with CFFTP


> I have a problem with CFFTP.  I am trying to use CFFTP to download a file
> onto a user hard drive.  When the user clicks a button the web site
creates
> a file using CFFILE and then tries to download it to C:\temp using CFFTP.
> However all it is doing is saving it to C:\Temp on the web server!  Here
is
> my code....
>
> <cfftp action="open" username="<username>" password="<password>"
> server="<servername>" connection="temp" stoponerror="no">
> <cfoutput>
> Open Error Code: #cfftp.errorcode#
> Open Error Text: #cfftp.errortext#
> </cfoutput>
>
> <cfftp connection="temp" action="GETFILE" localfile="c:\temp\test.doc"
> remotefile="#thisdirectory#TestFile.htm" transfermode="BINARY"
> failifexists="No" stoponerror="No">
> Download Error Code: #cfftp.errorcode#<br>
> Download Error Text: #cfftp.errortext#<br>
> </cfoutput>
> <cfftp action="CLOSE" connection="cv">
>
> Both FTP operations succeed.  Anyone have any ideas?
>
>
> ------------------------------------------------------------------
> Andrew Ewings
> Project Manager
> Thoughtbubble Ltd
> ------------------------------------------------------------------
>
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to