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')#"
I usually use a cached connection, in which I open the connection,
perform
one or more ftp operations over the connection, then close it. If
that's
what you're trying to do, then you don't want to specify the username
and
password again in the putfile operation (this opens a new connection).
Instead, list the name of the connection that you opened previously, by
using 'CONNECTION="FTP"'. Alternately, if this is you're only ftp
operation, supply the username/password in the putfile, but don't bother
opening and closing a connection.
Jim
----- Original Message -----
From: "Jim Vosika" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, February 02, 2002 6:39 PM
Subject: CFFTP Question
> I have looked at Macromedia's documentation and it pretty much sucks
for
> the CFFTP tag, could someone please help.
>
> I am trying to FTP a file to my other server and originally the file
is
> l712 Bytes and once it gets to t destination it is 0 bytes. Could
> someone please tell me what was wrong in my code?
>
> <CFFTP CONNECTION=FTP
> USERNAME="usr"
> PASSWORD="dog"
> SERVER="www.yahoo.com"
> ACTION="Open"
> STOPONERROR="Yes">
>
> <CFFTP
> ACTION="putfile"
> USERNAME="usr"
> PASSWORD="dog"
> SERVER="www.yahoo.com"
> LOCALFILE="testfile.txt"
> REMOTEFILE="/test/uploadedfile.txt">
>
> <CFFTP ACTION="close"
> CONNECTION="FTP"
> STOPONERROR="Yes">
>
> Thanks!
> Jim Vosika
> SoftwareSuperMall.Com
>
>
______________________________________________________________________
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