loop through the contents of a directory.
I have tried what Shahzad sugested. I thought it would work too, but no. I
think it may be the way remotefile is defined. Maybe it isn't getting the
name of the file right. But, I do not know, hence my appeal :-)
Pedro
-----Original Message-----
From: cf-talk [mailto:[EMAIL PROTECTED]
Sent: quarta-feira, 29 de Outubro de 2003 17:50
To: CF-Talk
Subject: RE: CFFTP - putfile problem
Sorry if someone already mentioned this but here's some possible
suggestions/tests....
1. Make sure you can upload the file by hand.... (ex. via a DOS prompt)
2. Maybe you need to use CFFTP in passive mode?
-Novak
-----Original Message-----
From: Pedro Mendes [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 8:31 AM
To: CF-Talk
Subject: RE: CFFTP - putfile problem
(My appologies if this message went twice, but I didn't get the delivery
confirmation)
I've tried prefixing the localfile and remotefile like you suggested:
localfile="D:\inetpub\wwwroot\procs\documentos\#directoria.Name#"
remotefile="cmvm/#directoria.Name#"
but the result was the same
I also tried taking the query attribute out from the cfoutput tag with
no result.
-----Original Message-----
From: Shahzad.Butt [mailto:[EMAIL PROTECTED]
Try this - I guess should work
<cfdirectory
action=""
name="directoria"
directory="D:\inetpub\wwwroot\procs\documentos\"
filter="*">
<cfoutput query="directoria">
<cfftp conection="liga"
action=""
stoponerror="yes"
localfile="D:\inetpub\wwwroot\procs\documentos\#directoria.Name#"
remotefile="cmvm/#directoria.Name#"
transfermode="binary">
</cfoutput>
-----Original Message-----
From: Pedro Mendes [mailto:[EMAIL PROTECTED]
I now have the following code:
<cfdirectory
action=""
name="directoria"
directory="D:\inetpub\wwwroot\procs\documentos\"
filter="*">
<cfoutput query="directoria">
<cfftp conection="liga"
action=""
stoponerror="yes"
localfile="D:\inetpub\wwwroot\procs\documentos\#Name#"
remotefile="cmvm/#Name"
transfermode="binary">
</cfoutput>
I get a "552 transfer failed" error. I suspect it has to do with how the
remotefile is defined.
Maybe it's a small thing, but I can't seem to find it.
-----Original Message-----
From: Shahzad.Butt [mailto:[EMAIL PROTECTED]
Just stick all the files in a directory then you can loop over a
directory and then pass the dynamic file name to FTP.
<cfdirectory action="" directory="#Request.myDir#" name="dirs"
filter="*">
<cfoutput query="dirs">
<cfftp action = "" file="#Request.myDir#\#dirs.name#">
</cfoutput>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

