<< Los Angeles ColdFusion User Group

Discussion Area

ask questions, discuss topics, solve problems

Discussion Home | About | Threads By Date | Search

<cfftp> putfile runtime error


Thread posted 04/02/09 by mabedian1 last edited 04/02/09
8,315 views, 0 comments.

Title
<cfftp> putfile runtime error

Content

Hi,

I just recently moved my sites from CF 6 to CF 8. Everything seem to work fine until I started testing on other file transfer modules on my site.

 

<cfftp

connection="newsfeed_connect"

action="open"

server="servername"

username="username"

password="password"

stoponerror ="no"

                timeout="300"

>

<!---  Check to see if the connection was opened --->

<cfif cfftp.Succeeded is "No">

<!--- Connection did not open so we display an error --->

<p><font color="#FF0000">Sorry invalid username/password information. Please use the back button.</font></p>

<cfelse>

<!--- Change directory to the designated csulb newsfeed location --->

   <cfftp

connection="newsfeed_connect"

action="changedir"

directory="#csulb_newsfeed_location#"

stoponerror ="no"

>

Attempting to access the publishing location ...<br />

<!--- Put file to rss location --->

<cfftp

connection="newsfeed_connect"

action="putfile"

localfile="#filestorage#\newsfeed.xml"

remotefile="newsfeed.xml"

                       timeout="300"

                       transfermode="auto"

stoponerror ="no"

>

<cfftp connection="newsfeed_connect" action="close" >

This code is still working fine on CF 6 but gives me runtime error on CF 8.

 

Is there something that I am missing? or it can be a bug on CF 8.

I really appreciate if anyone could assist me on this matter.