Yes, if I recall correctly.  If the file is in the same directory as the
template, you can use:

localfile="#ExpandPath('filetoupload.html')#"

Jim


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


> Are you saying that the attribute "localfile" in the putfile tag should b
> e
> something like
> localfile="C:\inetpub\wwwroot\clientsite\workingfolder\filetoupload.htm
> l"
> rather than localfile="filetoupload.html"?
>
> Cheers,
> Mike Kear
> Windsor, NSW, Australia
> AFP WebWorks
>
>
>
> -----Original Message-----
> From: Jim McAtee [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, January 13, 2002 11:11 AM
> To: CF-Talk
> Subject: Re: CFFTP help please .. whats wrong here?
>
> 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 clien
> t'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"  an
> d
> the
> > debugging info says it's to do with the CFFTP tag that's doing the putf
> ile
> > 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
> >
> >
>
> 
______________________________________________________________________
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=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to