Skip to main content
gokul1242
Inspiring
April 25, 2013
Question

Help with Cfftp connection

  • April 25, 2013
  • 1 reply
  • 478 views

Hi

I am trying to establish a ftp connection using cfftp tag

my code is

<cfftp connection = "myConnection"

    username = "abc"

    password = "xyx"

    server = "server address"

passive = "yes"

    action = "open"

    stopOnError = "Yes">

<cfoutput>#CFFTP.Succeeded#</cfoutput>

But i am getting the following error :

The cause of this exception was that: java.net.UnknownHostException:server address

kindly advice

Thanks

This topic has been closed for replies.

1 reply

WolfShade
Legend
April 25, 2013

Place <CFTRY> before the CFFTP tag, and <CFCATCH><CFDUMP var="#cfcatch#"></CFCATCH></CFTRY> after the CFOUTPUT tags.  You should see the error message, if there is one.

^_^