CFFTP Problem CF 7.02/WIndows Server 2003

2007-08-03 Thread Mark Forsberg
I am using cfftp to upload a file to a client's server. This is not FTPS. When 
I attempt to load up to an FTP site on Windows 2003 Server and IIS 6.0 I get 
the following error:

ErrorCode: -1
Error Message: Truncated Server Reply

I'm able to upload to the site from the command line and 3rd party tools, but 
not using CFHTTP. I can also run the same code against FTP sites hosted on UNIX 
servers and it uploads fine.

Has anyone had any experience getting CFFTP to connect to an FTP Server hosted 
on Windows Server 2003? 

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285323
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfftp problem

2005-05-22 Thread Jochem van Dieten
S.Isaac Dealey wrote:
  so... in theory, as long as you're connected to an ftp server, an
 existsDir call should never return cfftp.succeeded=false correct? ...
 I'm consistently getting these results from existsDir on CF 6.1
 
 arguments.item = /ontap/_components/_cfc/test
 
 cfftp directory=#arguments.item#
 action=#arguments.type#
 connection=#connection()#
 stoponerror=#stopOnError()#
 
 cfftp.errorcode = 250
 cfftp.errortext = 250 CWD command successful.
 /ontap/_components/_cfc is current directory.
 cfftp.returnvalue = NO
 cfftp.succeeded = NO
 
 So it looks like cfftp is telling me:
 
 a) the directory doesn't exist
 b) I can't tell you if the directory exists, because an error occurred
 before I could figure that out

You are going to need to more tools to find out what is really 
going on. Either you need to watch the connection realtime on the 
FTP server (does it have a debugger), or you are going to need a 
packetsniffer.

Jochem

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207378
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfftp problem

2005-05-22 Thread S . Isaac Dealey
 You are going to need to more tools to find out what is
 really going on. Either you need to watch the connection
 realtime on the FTP server (does it have a debugger),
 or you are going to need a packetsniffer.

Thanks Jochem, sigh I was afraid of this...

Can you recommend a good packetsniffer for windows? I've not been able
to get much utility out of the few I've tried... They've either been
so cryptic that I couldn't figure out how to work them or they didn't
seem to provide enough filtering control. I don't actually administer
the ftp server -- so I'd have to install a copy of it on my machine
and look at it here, though I'm pretty certain it's a free server, I'd
just have to find out from my host where he picked it up.

Though looking at the documentation for the FTP protocol it looks like
errorcode 250 is intended to indicate success, so I suspect whoever
created the ftp server may have muddled the existsDir response in such
a fashion that it returns the returnvalue in both the returnvalue and
succeeded variables. I decided to interpret any 250 response as a
success regardless of the value of cfftp.succeeded. Not sure if that's
the wisest decision.


s. isaac dealey 954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207386
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfftp problem

2005-05-22 Thread Jochem van Dieten
S.Isaac Dealey wrote:
 You are going to need to more tools to find out what is
 really going on. Either you need to watch the connection
 realtime on the FTP server (does it have a debugger),
 or you are going to need a packetsniffer.
 
 Thanks Jochem, sigh I was afraid of this...
 
 Can you recommend a good packetsniffer for windows? I've not been able
 to get much utility out of the few I've tried...

Ethereal: http://www.ethereal.com/

Jochem

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207388
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


cfftp problem

2005-05-21 Thread S . Isaac Dealey
 so... in theory, as long as you're connected to an ftp server, an
existsDir call should never return cfftp.succeeded=false correct? ...
I'm consistently getting these results from existsDir on CF 6.1

arguments.item = /ontap/_components/_cfc/test

cfftp directory=#arguments.item#
action=#arguments.type#
connection=#connection()#
stoponerror=#stopOnError()#

cfftp.errorcode = 250
cfftp.errortext = 250 CWD command successful.
/ontap/_components/_cfc is current directory.
cfftp.returnvalue = NO
cfftp.succeeded = NO

So it looks like cfftp is telling me:

a) the directory doesn't exist
b) I can't tell you if the directory exists, because an error occurred
before I could figure that out

 so obviously one of these is innaccurate...

It's strange tho, it seemed to be working and then just suddenly
stopped working and I can't figure out why. using stopOnError=true
doesn't raise a ColdFusion exception, which seems to indicate that
cfftp.succeeded=NO is incorrect. I'm trying to use cfftp.succeeded to
return ftp errors to a listener object, but that won't work if it
returns an error when no error has occurred. :-/

Here is the complete method (sorry for the line-wrap):

cffunction name=exists returntype=boolean access=public
output=false hint=indicates if a specified file or directory exists
on the ftp server
cfargument name=item type=string required=true
hint=indicates the file or direcotry to find
cfargument name=type type=string required=false 
default=
hint=file or dir - indicates the type of object to detect
cfset var cfftp = 0cfset arguments.type = exists 
rereplacenocase(arguments.type,^(file|dir).*$,\1)
cfset arguments.item = getRemotePath(arguments.item)
cfif not variables.isOpencfset open()/cfif
cfswitch expression=#arguments.type#
cfcase value=existscfftp item=#arguments.item#
action=#arguments.type# connection=#connection()#
stoponerror=#stopOnError()#/cfcase
cfcase value=existsFilecfftp 
remoteFile=#arguments.item#
action=#arguments.type# connection=#connection()#
stoponerror=#stopOnError()#/cfcase
cfcase value=existsDircfftp 
directory=#arguments.item#
action=#arguments.type# connection=#connection()#
stoponerror=#stopOnError()#/cfcase
/cfswitch
cfif not cfftp.Succeeded
cfset cfftp.item = arguments.item
cfset broadcast(error,cfftp,arguments.type)
/cfif
cfreturn cfftp.returnvalue
/cffunction

Any help greatly appreciated.

s. isaac dealey 954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207352
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Now a CFFTP problem...

2004-06-27 Thread Michael Kear
I'm not having a great day today!(sigh)Now I cant see why the
following code would work ok on my dev server, but when I upload it to the
production server it doesn't work.What happens is it executes the CFFTP
Open command ok, but when it executes the next command I get the error
message: 

{quote]

An exception occurred when performing the FTP CHANGEDIR operation. 

[/quote]



Here's the code:It's copied directly from my dev server to the production
server and I cant see why it would work in one but not the other.(I've
checked, and CFFTP isn't disabled on the production server.The only
difference I can see is that my dev server is CFMX6.1 standard, and the
production is MX6.1 Enterprise Edition.)If I take out the CHANGEDIR code,
and go straight to the PUTFILE code, the same error occurs at the same
point, so it's not a syntax error in the CHANGEDIR tag.Any ideas?

[CODE]

cfftp action="" 

server=servername

username=username 

password=password 

stoponerror=Yes 

port=21 

 connection=hawkradio



.Connection opened.br



cfftp action="" 

directory=/public_html 

connection=hawkradio

.uploading the file .br

cfflush interval=2

cfftp action="">

 stoponerror=Yes

 localfile=#request.absolutepath#\guide.htm

 remotefile=guide.htm

 transfermode=ASCII

 connection=hawkradio 

.Done .br

br

cfftp action = "">

 connection=hawkradio

 stoponerror = Yes

[/CODE]

Cheers

Mike Kear

AFP Webworks

Windsor, NSW, Australia

http://afpwebworks.com
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Now a CFFTP problem...

2004-06-27 Thread sicksick monkey
Mike,
Not sure if you have tried this or not, but if your code seems to
work on your development server and not your production server, I
would first check the permission of the username you are trying to
connect with on your production ftp server.Make sure the username
and password you are using have valid accounts on both the development
and production ftp servers.

-Dave

- Original Message -
From: Michael Kear [EMAIL PROTECTED]
Date: Sun, 27 Jun 2004 17:06:34 +1000
Subject: Now a CFFTP problem... 
To: CF-Talk [EMAIL PROTECTED]

I'm not having a great day today!(sigh)Now I cant see why the

following code would work ok on my dev server, but when I upload it to the

production server it doesn't work.What happens is it executes the CFFTP

Open command ok, but when it executes the next command I get the error

message: 

{quote]

An exception occurred when performing the FTP CHANGEDIR operation. 

[/quote]



Here's the code:It's copied directly from my dev server to the production

server and I cant see why it would work in one but not the other.(I've

checked, and CFFTP isn't disabled on the production server.The only

difference I can see is that my dev server is CFMX6.1 standard, and the

production is MX6.1 Enterprise Edition.)If I take out the CHANGEDIR code,

and go straight to the PUTFILE code, the same error occurs at the same

point, so it's not a syntax error in the CHANGEDIR tag.Any ideas?

[CODE]

cfftp action="" 

server=servername

username=username 

password=password 

stoponerror=Yes 

port=21 

 connection=hawkradio



.Connection opened.br



cfftp action="" 

directory=/public_html 

connection=hawkradio

.uploading the file .br

cfflush interval=2

cfftp action="">

 stoponerror=Yes

 localfile=#request.absolutepath#\guide.htm

 remotefile=guide.htm

 transfermode=ASCII

 connection=hawkradio 

.Done .br

br

cfftp action = "">

 connection=hawkradio

 stoponerror = Yes

[/CODE]

Cheers

Mike Kear

AFP Webworks

Windsor, NSW, Australia

http://afpwebworks.com
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Now a CFFTP problem...

2004-06-27 Thread Michael Kear
Thanks Dave,I thought about that too.Since it's the production server
that is trying unsuccessfully to ftp to a third server,its ColdFusion
itself that has to have ftp permissions to ftp OUT of the production server.


How do I make sure that ColdFusion has permissions to ftp outwards?(I
can't ftp into my own system because I haven't got a working inbound FTP
through my own firewall).

Cheers

Mike Kear

Windsor, NSW, Australia

AFP Webworks

http://afpwebworks.com



_

From: sicksick monkey [mailto:[EMAIL PROTECTED] 
Sent: Sunday, 27 June 2004 10:47 PM
To: CF-Talk
Subject: Re: Now a CFFTP problem...

Mike,
Not sure if you have tried this or not, but if your code seems to
work on your development server and not your production server, I
would first check the permission of the username you are trying to
connect with on your production ftp server.Make sure the username
and password you are using have valid accounts on both the development
and production ftp servers.

-Dave
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Now a CFFTP problem...

2004-06-27 Thread sicksick monkey
Mike,
To answer your question, the only way I can think of checking to see
if you CF Server can connect to a third party server, is to physically
get on the ftp server and check the user permissions.

If I were you though, I would do the following:

1)Separate your code into three different sections.It appearrs as
if you want to perform 3 different actions to the ftp server; so I
would separate them as follows.(1)open a connection to the server,
(2) change to diff dir than home dir  (3) upload a file.

2) First test to see if you can connect to the FTP server by just
opening a connection.If an error does not occur here, then you
know that you are at least able to connect to the ftp server.

3) If you are able to successfully connect to the ftp server without
error, I would then simply test the other functions.By doing this,
you can figure out exactly what permissions your cfserver user/perm.
have.(ie (1)see if you can connect and then upload a file to your
home directory;(2)see if you can connect, upload file to home
directory and then try to change directory)

Hope this helps.

-Dave

- Original Message -
From: Michael Kear [EMAIL PROTECTED]
Date: Sun, 27 Jun 2004 23:10:52 +1000
Subject: RE: Now a CFFTP problem...
To: CF-Talk [EMAIL PROTECTED]

Thanks Dave,I thought about that too.Since it's the production server

that is trying unsuccessfully to ftp to a third server,its ColdFusion

itself that has to have ftp permissions to ftp OUT of the production server.



How do I make sure that ColdFusion has permissions to ftp outwards?(I

can't ftp into my own system because I haven't got a working inbound FTP

through my own firewall).

Cheers

Mike Kear

Windsor, NSW, Australia

AFP Webworks

http://afpwebworks.com



_

From: sicksick monkey [mailto:[EMAIL PROTECTED] 

Sent: Sunday, 27 June 2004 10:47 PM

To: CF-Talk

Subject: Re: Now a CFFTP problem...


Mike,

Not sure if you have tried this or not, but if your code seems to

work on your development server and not your production server, I

would first check the permission of the username you are trying to

connect with on your production ftp server.Make sure the username

and password you are using have valid accounts on both the development

and production ftp servers.

-Dave
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




CFFTP - Problem with a Firewall

2004-06-01 Thread Matthew Friedman
I have been FTPing files to this client for over a month and then I have
been getting errors lately.The only thing that had changed is that the
client updated the firewall

I can connect to the FTP server using thepassive=YES
But when I try to upload a file I get the following errors

On open the connection
error code: 0 error text: 200 STRU F ok.

On placing the file
error code: 15 error text: 227 Entering Passive Mode (0,0,0,0,4,233).

The file is written to the server but with a Zero length.

I have tried everything with the partner and I can not seam to get this to
work correctly.

Current Code I am running

cfftp action="" passive=Yes username= password=
server=216.41.12.34 connection=hjol

cfftp action="">
 localfile=D:/Inetpub/wwwroot/wtc/batching/new_posts/uploadfile.xml
remotefile=uploadfile.xml
 transfermode=AUTO connection=hjol

When I connect using SmartFTP or a IE it works fine.

Any help would be great.

Matt
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




CFFTP problem.. anyone see how to get around this?

2003-12-21 Thread Mike Kear
I'm trying to write a template to retrieve a file from a remote location and
process it.The problem is that CFFTP cant find the correct directory on
the remote site because the directory name has a space in it.Anyone know
how to get around this? 

I'm wanting it to change to directory /Custom Extractsbut I keep
getting a message saying that directory /Custom cannot be found. 

I've tried replacing the space with %20, and using double quotes - is there
anything else I can try?

Cheers

Mike Kear

Windsor, NSW, Australia

AFP Webworks

http://afpwebworks.com
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




CFFTP problem.. anyone see how to get around this?

2003-12-21 Thread Mike Kear
I'm trying to write a template to retrieve a file from a remote location and
process it.The problem is that CFFTP cant find the correct directory on
the remote site because the directory name has a space in it.Anyone know
how to get around this? 

I'm wanting it to change to directory /Custom Extractsbut I keep
getting a message saying that directory /Custom cannot be found. 

I've tried replacing the space with %20, and using double quotes - is there
anything else I can try?

Cheers
Mike Kear
Windsor, NSW, Australia
AFP Webworks
http://afpwebworks.com
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




CFFTP Problem

2002-04-08 Thread Mark Leder

The following code is able to open and close the connection to my remote
server fine (permissions are set properly). However, it skips over (or
doesn't find) the file on the remote server in the GETFILE action.  What
am I doing wrong?

Thanks for your help.

Mark


=
!--- Retrieves the database from the server to the local machine ---

!--- Set the parameters to be used on retrieving this database ---
CFSET serverip=123.456.789.012
CFSET username1 = myuser
CFSET password1 = mypswd
CFSET localfile1 = c:\temp\foo.mdb
CFSET remotefile1 = foo.mdb


!--- Opens the directory  ---
CFLOCK TIMEOUT=60 THROWONTIMEOUT=No TYPE=EXCLUSIVE
SCOPE=SESSION

CFFTP ACTION=OPEN
   SERVER=#serverip# 
   USERNAME=#username1#
   PASSWORD=#password1#
   STOPONERROR=Yes
   PASSIVE=Yes
   CONNECTION=getdb

/CFLOCK

Connection opened - beginning file download to your local machine.

!--- Gets the file from the server and puts it on the local machine
---
CFLOCK TIMEOUT=60 THROWONTIMEOUT=No TYPE=READONLY
SCOPE=SESSION

CFFTP ACTION=GETFILE
   STOPONERROR=Yes
   PASSIVE=Yes
   LOCALFILE=#localfile1#
   REMOTEFILE=#remotefile1#
   TRANSFERMODE=AUTO
   FAILIFEXISTS=No
   CONNECTION=getdb

/CFLOCK

!--- Closes the connection  ---
CFLOCK TIMEOUT=60 THROWONTIMEOUT=No TYPE=EXCLUSIVE
SCOPE=SESSION

CFFTP ACTION=CLOSE
   STOPONERROR=Yes
   PASSIVE=Yes
   CONNECTION=getdb

/CFLOCK

Thanks,
Mark

__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
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



Re: CFFTP Problem

2002-04-08 Thread Mario Martinez R.

1_Is that a valid file name???
CFSET remotefile1 = foo.mdb

2_Is that TRANSFERMODE=AUTO or
TRANSFERMODE=AUTODETECT ??


I'm posting the completely help from Coldfusion studio
down here to see if it can help.See and compare
againsts the tested samples.

Regards Mario.

CFFTP
CFFTP allows users to implement File Transfer Protocol
operations. 

Note  The CFFTP tag is for moving files between a
ColdFusion server and an FTP server. CFFTP cannot move
files between a ColdFusion server and a browser
(client). Use CFFILE ACTION=UPLOAD to transfer files
from the client to a ColdFusion server; use CFCONTENT
to transfer files from a ColdFusion server to the
browser.  



Note also that ColdFusion Server Basic security
settings may prevent CFFTP from executing. These
settings are managed using the ColdFusion
Administrator Basic Security page. If you write
ColdFusion applications designed to run on a server
that is used by multiple customers, you need to
consider the security of the files that the customer
can move. Please refer to Administering ColdFusion
Server for more information about securing ColdFusion
tags.

CFFTP topics:
Establishing a Connection with CFFTP 
File and Directory Operations with CFFTP 
Accessing the Columns in a Query Object 
CFFTP.ReturnValue Variable 
Connection Caching 
Establishing a Connection with CFFTP
Use the CONNECTION attribute of the CFFTP tag to
establish a connection with an FTP server. 

If you use connection caching to an already active FTP
connection, you don't need to respecify the connection
attributes:

USERNAME 
PASSWORD 
SERVER 
Note  Changes to a cached connection, such as changing
RETRYCOUNT or TIMEOUT values, may require
reestablishing the connection.  



Syntax
CFFTP ACTION=action
USERNAME=name
PASSWORD=password
SERVER=server
TIMEOUT=timeout in seconds
PORT=port
CONNECTION=name
PROXYSERVER=proxyserver
RETRYCOUNT=number
STOPONERROR=Yes/No
PASSIVE=Yes/No

ACTION
Required. Determines the FTP operation to perform. To
create an FTP connection, use Open. To terminate an
FTP connection, use Close. See Connection Caching for
more information.

USERNAME
Required for Open. User name to pass in the FTP
operation. 

PASSWORD
Required for Open. Password to log in the user.

SERVER
Required for Open. The FTP server to connect to, as in
ftp.myserver.com

TIMEOUT
Optional. Value in seconds for the timeout of all
operations, including individual data request
operations. Defaults to 30 seconds.

PORT
Optional. The remote port to connect to. Defaults to
21 for FTP.

CONNECTION
Optional. The name of the FTP connection. Used to
cache a new FTP connection or to reuse an existing
connection. If the USERNAME, PASSWORD, and SERVER
attributes are specified, a new connection is created
if no connection exists for the specified user. All
calls to CFFTP with the same connection name will
reuse the same FTP connection information. 

PROXYSERVER
Optional. A string that contains the name of the proxy
server (or servers) to use if proxy access was
specified. 

RETRYCOUNT
Optional. Number of retries until failure is reported.
Default is one (1). 

STOPONERROR
Optional. Yes or No. When Yes, halts all processing
and displays an appropriate error. Default is Yes. 

When No, three variables are populated:

CFFTP.Succeeded - Yes or No. 
CFFTP.ErrorCode - Error number (See following Note for
critical information.) 
CFFTP.ErrorText - Message text explaining error type 
Note  Use CFFTP.ErrorCode for conditional operations.
Do not use CFFTP.ErrorText for this purpose.  



PASSIVE
Optional. Yes or No. Defaults to No. Indicates whether
to enable passive mode. 

Example
CFFTP!--- This view-only example shows the use of
CFFTP ---
HTML
HEAD
TITLECFFTP Example/TITLE
/HEAD
BODY

H3CFFTP Example/H3
PCFFTP allows users to implement File Transfer
Protocol
operations.  By default, CFFTP caches an open
connection to
an FTP server.

PCFFTP operations are usually of two types:
UL
LIEstablishing a connection
LIPerforming file and directory operations
/UL
PThis view-only example opens and verifies a
connection,
lists the files in a directory, and closes the
connection.
!---
POpen a connection

CFFTP ACTION=open
USERNAME=anonymous
CONNECTION=My_query
PASSWORD=[EMAIL PROTECTED]
SERVER=ftp.tucows.com
STOPONERROR=Yes

PDid it succeed?
CFOUTPUT#CFFTP.Succeeded#/CFOUTPUT
PList the files in a directory:
CFFTP ACTION=LISTDIR
   STOPONERROR=Yes
   NAME=ListFiles
   DIRECTORY=lib
   CONNECTION=my_query
CFOUTPUT QUERY=ListFiles
#name#BR
/CFOUTPUT

PClose the connection:
CFFTP ACTION=close
CONNECTION=My_query
STOPONERROR=Yes
PDid it succeed?
CFOUTPUT#CFFTP.Succeeded#/CFOUTPUT
---

/BODY
/HTML   

File and Directory Operations with CFFTP
Use this form of the CFFTP tag to perform file and
directory operations with CFFTP.

If you use connection caching to an already active FTP
connection, you don't need to respecify the connection
attributes:

USERNAME 
PASSWORD 
SERVER 

RE: CFFTP Problem

2002-01-09 Thread Bimal Shah

Hi,

We have developed a CFX tag for coldfusion for ftp upload and
download. Our main reason for developing it was for speed, the
coldfusion cfftp putfile and getfile are too slow.

As an example, the cfftp tag taks 7-9 seconds to upload a file while our
tag takes 1-2 seconds (ftp to same server, same file).

I am prepared to let people try it out for testing purposes only. 
It hasn't been fully tested and has not been released offically.

If it fits your needs we can sort out something.

Please send me an email for more details.

Thanks

---
Bimal Shah (Senior Web Developer)
(T) 020 7240 5858 (F) 020 7240 5859
(E) [EMAIL PROTECTED]
Venus Internet Limited http://www.venus.co.uk
__
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



CFFTP Problem

2002-01-08 Thread Tyler Clendenin

I know you have heard of this problem before, but I am looking for a 
solution.  When using CFFTP to upload a fil it uploads as 0k.  I was 
going to use the Intrafoundation.TCPClient and do it manually, but 
unfortunatly this is hosted remotely and not on our server.  Does anyone 
have any suggestions.

btw, i think it is just an error with cf server 5 because i have never 
had this problem before it.

__
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFFTP Problem

2002-01-08 Thread Jim McAtee

When using CFFTP to upload a fil it uploads as 0k.

And the problem is?

Jim


- Original Message - 
From: Tyler Clendenin [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, January 08, 2002 1:57 PM
Subject: CFFTP Problem


 I know you have heard of this problem before, but I am looking for a 
 solution.  When using CFFTP to upload a fil it uploads as 0k.  I was 
 going to use the Intrafoundation.TCPClient and do it manually, but 
 unfortunatly this is hosted remotely and not on our server.  Does anyone 
 have any suggestions.
 
 btw, i think it is just an error with cf server 5 because i have never 
 had this problem before it.
__
Why Share?
  Dedicated Win 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=coldfusionc
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



Re: CFFTP Problem

2002-01-08 Thread Tyler Clendenin

hehehe, sorry, doesn't look right, that is a zero ... as in zero KB.  sorry
for the confusion
- Original Message -
From: Jim McAtee [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, January 08, 2002 4:07 PM
Subject: Re: CFFTP Problem


 When using CFFTP to upload a fil it uploads as 0k.

 And the problem is?

 Jim


 - Original Message -
 From: Tyler Clendenin [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Tuesday, January 08, 2002 1:57 PM
 Subject: CFFTP Problem


  I know you have heard of this problem before, but I am looking for a
  solution.  When using CFFTP to upload a fil it uploads as 0k.  I was
  going to use the Intrafoundation.TCPClient and do it manually, but
  unfortunatly this is hosted remotely and not on our server.  Does anyone
  have any suggestions.
 
  btw, i think it is just an error with cf server 5 because i have never
  had this problem before it.
 
__
Why Share?
  Dedicated Win 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=coldfusionc
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



Re: CFFTP Problem

2002-01-08 Thread Maureen

At 04:07 PM 1/8/02, you wrote:
When using CFFTP to upload a fil it uploads as 0k.

And the problem is?

Jim

Usually the physical path to the file is wrong, so it doesn't actually find 
it to upload, it just creates an empty file with the name given.

__
Why Share?
  Dedicated Win 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=coldfusionc
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



RE: CFFTP Problem

2002-01-08 Thread Joel Parramore

Without knowing more about your setup, one can't really suggest much.
There's a knowledge base article on a similar issue which might help:

http://www.allaire.com/Handlers/index.cfm?ID=22319Method=Full

Regards,
Joel Parramore


 -Original Message-
 From: Tyler Clendenin [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 08, 2002 4:16 PM
 To: CF-Talk
 Subject: Re: CFFTP Problem


 hehehe, sorry, doesn't look right, that is a zero ... as in zero
 KB.  sorry
 for the confusion
 - Original Message -
 From: Jim McAtee [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Tuesday, January 08, 2002 4:07 PM
 Subject: Re: CFFTP Problem


  When using CFFTP to upload a fil it uploads as 0k.
 
  And the problem is?
 
  Jim
 
 
  - Original Message -
  From: Tyler Clendenin [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Tuesday, January 08, 2002 1:57 PM
  Subject: CFFTP Problem
 
 
   I know you have heard of this problem before, but I am looking for 
a
   solution.  When using CFFTP to upload a fil it uploads as 0k.  I wa
s
   going to use the Intrafoundation.TCPClient and do it manually, but
   unfortunatly this is hosted remotely and not on our server.
 Does anyone
   have any suggestions.
  
   btw, i think it is just an error with cf server 5 because i have ne
ver
   had this problem before it.
 
 
__
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



RE: CFFTP Problem

2002-01-08 Thread Kym Kovan

Hi all,

Funnily enough I am having exactly the same problem. The ftp fails and I 
get an empty file left at the destination.

Without knowing more about your setup, one can't really suggest much.
There's a knowledge base article on a similar issue which might help:

http://www.allaire.com/Handlers/index.cfm?ID=22319Method=Full

I checked that article and I am already doing that, ie check that the local 
file is there and then run the cfftp tag. All appears correct but the 
actual file never gets transferred.

We are running CF4.5.1.


--

Yours,

Kym
__
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



CFFTP problem - 0 byte

2001-01-18 Thread Paul Sizemore

I have been using cfFTP to u/l a file to a server (StoreRunner.com), but all
of a sudden they say they are getting 0 byte files (after a few months of
daily success). When I send the same file with WS FTP, it gets there. Does
anyone have any insight? Code follows, and I am relatively new to CF (so I
could be overlooking the obvious).

cfftp action="OPEN" 
server="216.229.243.231"  
username="anonymous" 
password="[EMAIL PROTECTED]" transfermode="AUTO"
stoponerror="yes" passive="Yes"
connection="StoreRunner" timeout="65" port="21"


cfftp connection="StoreRunner" 
action="PUTFILE"
remotefile="#StaticFileName#"

localfile="E:\Inetpub\intranet\!Apps\StoreRunner\MerchUpdate\Assets\OutputFi
les\#StaticFilename#" 
transfermode="AUTO" timeout="65"   

Thanks for your help.

Paul Sizemore

Finish Line
3308 N Mitthoeffer Rd
Indianapolis, IN 46235
W: 317-899-1022 ext 3516


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



CFFTP Problem....wont upload .txt files

2000-07-12 Thread Douglas Rehg

--=_791644406==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed

Hi

I am trying to run a script for users to be able to ftp txt files to a FTP 
server.  The script will work fine with .rtf, .log and .doc files, but will 
not properly upload .txt files.

On my development server, when a .txt file is FTP'd. it will place a file 
on the FTP server, but it will be an empty file.  The same file with a 
extension of .log will upload perfectly.

When using the Production server, it wont upload anything at all.  It tries 
to upload the file using the contents of the text file as the name, and 
throws an error.

On the form, I am using the enctype multipart/form-data.

I am guessing this might be an IIS configuration problem, but I am 
unsure...I am running CF 4.5.1 (Dev) amd 4.0.1 (Prod) on IIS.  Code 
snippets below.

CODE
cfftp action="OPEN" server="blahblah"  username="me" password="pass" 
connection="ftpit"
cfftp connection="ftpit" action="PUTFILE"  stoponerror="Yes" 
localfile="#filename#" remotefile="newfilename" 
transfermode="AUTO"   asciiextensionlist="txt;log;doc;rtf"
cfftp action="CLOSE" stoponerror="Yes" connection="ftpit"

ERROR MSG (Production Server)
Error Diagnostic Information
An error occurred while processing CFFTP tag (Cold Fusion error code 1, FTP 
error code 206): Cannot put local file test me test me test me test me test 
me test me test me test me test me test me test me test me test metest 
metest me test me test me test me test me test me test me test me test me 
test me test me test me test me test metest metest me test me test me test 
me test me test me test me test me test me test me test me test me test me 
test metest metest me test me test me test me test me test me test me test 
me test me test me test me test me test me test metest metest me test me 
test me test me test me test me test me test me test me test me test me 
test me test me test metest metest me test me test me test me test me test 
me test me test me test me test me test me test me test me test metest 
metest me test me test me test me test me test me test me test me test me 
test me test me test me test me test metest metest me test me test me test 
me test me test me test me test me test me test me test me test me test me 
test metest metest me test me test me test me test me test me test me test 
me test me test me test me test me test me test metest metest me to remote 
file NoCR_12-Jul-00_141755__F3.log: The filename or extension is too long

NOTE:  All of the test me stuff is the contents of the file

--=_791644406==_.ALT
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

html
Hibr
br
I am trying to run a script for users to be able to ftp txt files to a
FTP server.nbsp; The script will work fine with .rtf, .log and .doc
files, but will not properly upload .txt files.br
br
On my development server, when a .txt file is FTP'd. it will place a file
on the FTP server, but it will be an empty file.nbsp; The same file with
a extension of .log will upload perfectly.br
br
When using the Production server, it wont upload anything at all.nbsp;
It tries to upload the file using the contents of the text file as the
name, and throws an error.br
br
On the form, I am using the enctype multipart/form-data.br
br
I am guessing this might be an IIS configuration problem, but I am
unsure...I am running CF 4.5.1 (Dev) amd 4.0.1 (Prod) on IIS.nbsp; Code
snippets below.br
br
CODE
dl
ddlt;cfftp action=3Dquot;OPENquot; server=3Dquot;blahblahquot;nbsp;
username=3Dquot;mequot; password=3Dquot;passquot;
connection=3Dquot;ftpitquot;gt;
ddlt;cfftp connection=3Dquot;ftpitquot;
action=3Dquot;PUTFILEquot;nbsp; stoponerror=3Dquot;Yesquot;
localfile=3Dquot;#filename#quot; remotefile=3Dquot;newfilenamequot;
transfermode=3Dquot;AUTOquot;
x-tabnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;/x-tabx-tabnbsp;nbsp;nbsp;=
nbsp;nbsp;nbsp;nbsp;nbsp;/x-tabasciiextensionlist=3Dquot;txt;log;doc=
;rtfquot;gt;
ddlt;cfftp action=3Dquot;CLOSEquot; stoponerror=3Dquot;Yesquot;
connection=3Dquot;ftpitquot;gt;x-tabnbsp;nbsp;nbsp;nbsp;nbsp;/x-t=
abbr
br

/dlERROR MSG (Production Server)br

dlb
ddError Diagnostic Information/b
ddAn error occurred while processing CFFTP tag (Cold Fusion error code
1, FTP error code 206): Cannot put local file test me test me test me
test me test me test me test me test me test me test me test me test me
test metest metest me test me test me test me test me test me test me
test me test me test me test me test me test me test metest metest me
test me test me test me test me test me test me test me test me test me
test me test me test me test metest metest me test me test me test me
test me test me test me test me test me test me test me test me test me
test metest metest me test me test me test me test me test me test me
test me test me test me test me test me test me test metest metest me
test me test me test me test me test me test me test