Are you using a fully qualified path to designate the 'localfile'?

Jim


----- Original Message -----
From: "Mike Kear" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, January 12, 2002 4:57 PM
Subject: CFFTP help please .. whats wrong here?


> I'm trying to have a CF template automatically upload a file to a client's
> site, and I keep getting an error.   I don't know what's wrong .. can
> someone see please?
>
> The error I'm getting is:  "The attribute FileOnServer must contain a
> filename with a .htm or .html extension   500 Illegal PORT command"  and
the
> debugging info says it's to do with the CFFTP tag that's doing the putfile
> action.
>
> I've done all these actions using the DOS window FTP program, so I know I
> have all the relevant permissions to do this.
>
>
> Here's my code:  (servername and password etc changed to protect the
> innocent)
>
>
> <cfftp action="OPEN"
>         server="servername.com.au"
>         username="username"
>         password="password"
>         stoponerror="Yes"
>         port="21"
>        connection="clientname">
>
>
>
> <cfftp action="CHANGEDIR"
> directory="/home/radio/public_html/therightfolder"
> connection="clientname">
>
>
> <cfftp action="PUTFILE"
>        stoponerror="Yes"
>        localfile="filetoupload.html"
>        remotefile=" filetoupload.html"
>        transfermode="ASCII"
>        connection="clientname">
>
> <cfftp action = "close"
>        connection="clientname"
>        stopOnError = "Yes">
>
>
> Can you see what's wrong?
>
> Cheers,
> Mike Kear
> Windsor, NSW, Australia
> AFP WebWorks
>
> 
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to