Lisa

I would make sure the connection was made before dong that call

<cfftp server = "myserverip"
         username = "usertest"
         password = "usertest1"
         action = "open"
         connection = "test"
         stoponerror = "yes">

<cfif CFFTP.Succeeded>

        <cfftp  connection="test" 
                        action ="getCurrentdir" 
                        stoponerror="yes">
        
        <cfset ThisDirectory = #cfftp.returnvalue#>

        <cfftp action="close" connection="test" stoponerror="no">

<cfelse>
        Connection Failed
</cfif>

Steve

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lisa Bogle
Sent: Wednesday, November 17, 2004 5:12 PM
To: CFAussie Mailing List
Subject: [cfaussie] Cfftp problem

Hi all,

I am trying to get the basics working with cfftp at the moment and am having
a problem. Basically at this early stage all im trying to do is open a
connection to an ftp server and then get the name of the current directory.
see code below. I am getting the same error regardless of what action I
perform - i.e. listdir does the same thing. My first action of open appears
to succeed fine telling me the session was opened fine but then when I run
the next request I get the error listed below.

I have this happen with both my test ftp servers on 2 completely different
machines in to different locations so I'm pretty sure its me that's the
problem here ;)
I believe the first time I tried it, I think it worked from memory however
since then I have had the same problem everytime.




<cfftp server = "myserverip"
 username = "usertest"
 password = "usertest1"
 action = "open"
 connection = "test"
 stoponerror = "yes">

 <cfftp connection="test" action ="getCurrentdir" stoponerror="yes">
 <cfset ThisDirectory = #cfftp.returnvalue#>
<cfftp action="close" connection="test" stoponerror="no">

Error I get is :


      An exception occurred when performing the FTP getCurrentdir operation.
      The cause of this exception was that: Connection closed without
indication..



Any help / insights would be much appreciated!!

Cheers
Lisa



---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/


---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to