You need the fully qualified path of the _local_ file, not the remote file.
The local file is the file on your CF server, the remote file is the
destination file on the FTP server.
<CFFTP
CONNECTION=FTP
ACTION="putfile"
SERVER="www.yahoo.com"
LOCALFILE="#ExpandPath('testfile.txt')#"
REMOTEFILE="/test/uploadedfile.txt">
Jim
----- Original Message -----
From: "Jim Vosika" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, February 02, 2002 7:29 PM
Subject: RE: CFFTP Question
> I have tried the ExpandPath as shown below and when I use that, not a
> single file is created on the other server. And I can't use a fully
> qualified path because the server I am trying to FTP to is a virtual
> server account so I have no idea when the path would be to account.
> Before it made the file but it was 0 bytes....Any more suggestions or am
> I screwed?
>
> <CFFTP CONNECTION=FTP
> USERNAME="usr"
> PASSWORD="dog"
> SERVER="www.yahoo.com"
> ACTION="Open"
> STOPONERROR="Yes">
>
> <CFFTP
> CONNECTION=FTP
> ACTION="putfile"
> SERVER="www.yahoo.com"
> LOCALFILE="/test/stuff.txt"
> REMOTEFILE="#ExpandPath('newstuff.txt')#">
>
> <CFFTP ACTION="close"
> CONNECTION="FTP"
> STOPONERROR="Yes">
>
> Thanks!
> Jim Vosika
> SoftwareSuperMall.Com
>
> -----Original Message-----
> From: Jim McAtee [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, February 02, 2002 8:00 PM
> To: CF-Talk
> Subject: Re: CFFTP Question
>
> I think you need a fully qualified path to the local file, as in
>
> LOCALFILE="C:\somedirectory\myfile.txt"
>
> If you know it's in the same directory as the CF template, you can use
>
> LOCALFILE="#ExpandPath('myfile.txt')#"
______________________________________________________________________
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