The below code seems to be working but when I open the file on the remote server after the file has been transferred its empty yet the file on the local server is not. I can't figure out why?

<P>Open a connection

<CFFTP ACTION="" SERVER="#FTP_SERVER#"  USERNAME="#FTP_USERNAME#" PASSWORD="#FTP_PASSWORD#" STOPONERROR="NO" CONNECTION="#FTP_CONNECTION#" TIMEOUT="500" PASSIVE="yes">

<P>Did it succeed? <CFOUTPUT>#CFFTP.Succeeded#</CFOUTPUT>
<P>List the files in a directory:

<CFFTP ACTION="">        STOPONERROR="Yes"
       NAME="ListFiles"
       DIRECTORY="#FTP_DIRECTORY#"
       CONNECTION="#FTP_CONNECTION#">

<CFFTP
    ACTION="">     USERNAME="#FTP_REMOTE_USERNAME#"
    PASSWORD="#FTP_REMOTE_PASSWORD#"
    NAME="#FTP_CONNECTION#"
    SERVER="#FTP_REMOTE_SERVER#"
    PORT="#FTP_REMOTE_PORT#"
    TRANSFERMODE="ASCII"
    FAILIFEXISTS="No"
    LOCALFILE="#FTP_REMOTE_LOCALFILE#"
    REMOTEFILE="#FTP_REMOTE_REMOTEFILE#"
    PASSIVE="Yes">

<CFOUTPUT QUERY="ListFiles">
    #name#<BR>
</CFOUTPUT>

<P>Close the connection:

<CFFTP ACTION="" STOPONERROR="NO" CONNECTION="<CFOUTPUT>#FTP_CONNECTION#</CFOUTPUT>">

<P>Did it succeed? <CFOUTPUT>#CFFTP.Succeeded#</CFOUTPUT>

--
_______________________________________________
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC="" Remove Footer Here-->
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to