Question
Page refreshing after CFFTP operation
I am at my wits end with this....
OK here's what I am doing....
a simple cfftp getfile action to pull a file from a remote ftp server....This works
what I want to happen after that action is for the page to refresh itself (without the url variables that initiated the action)
Here's what happens...
The cfftp action runs without a hitch but the browser displays
"Internet explorer cannot display the page.........."
When the user clicks a link on the page, the page is executed again with a URL variable like so;
http://10.26.1.100/mpiadmin.cfm?ftp=yes
This instructs the page to run the cfftp action....and at the end I have a cflocation to reload the page without the url variable.
<cfif isdefined("url.ftp") and url.ftp is "yes">
<cfset thefile = #GetDirectoryFromPath(GetBaseTemplatePath())# & "load" & "\" & "Data" & "\" & "unit.fil">
<!--- Open an FTP Connection to HBOC Server in Dallas --->
<!--- Transfer Unit.fil file to DATA directory --->
<cfftp action = "getfile"
username = "---"
connection = "HBOC_Downtime"
password = "-------"
server = "---.---.---.---"
stopOnError = "Yes"
remotefile="/user/hbocsql/unit.fil"
localfile="#thefile#"
failifexists="no">
<!--- Close the FTP connection to HBOC Server in Dallas --->
<cfftp action = "close"
connection = "HBOC_Downtime"
stopOnError = "Yes">
<cflocation addtoken="no" url="mpiadmin.cfm">
</cfif>
Can anyone tell me why this is failing (meaning the page reload)?
Thanks,
-Jones
OK here's what I am doing....
a simple cfftp getfile action to pull a file from a remote ftp server....This works
what I want to happen after that action is for the page to refresh itself (without the url variables that initiated the action)
Here's what happens...
The cfftp action runs without a hitch but the browser displays
"Internet explorer cannot display the page.........."
When the user clicks a link on the page, the page is executed again with a URL variable like so;
http://10.26.1.100/mpiadmin.cfm?ftp=yes
This instructs the page to run the cfftp action....and at the end I have a cflocation to reload the page without the url variable.
<cfif isdefined("url.ftp") and url.ftp is "yes">
<cfset thefile = #GetDirectoryFromPath(GetBaseTemplatePath())# & "load" & "\" & "Data" & "\" & "unit.fil">
<!--- Open an FTP Connection to HBOC Server in Dallas --->
<!--- Transfer Unit.fil file to DATA directory --->
<cfftp action = "getfile"
username = "---"
connection = "HBOC_Downtime"
password = "-------"
server = "---.---.---.---"
stopOnError = "Yes"
remotefile="/user/hbocsql/unit.fil"
localfile="#thefile#"
failifexists="no">
<!--- Close the FTP connection to HBOC Server in Dallas --->
<cfftp action = "close"
connection = "HBOC_Downtime"
stopOnError = "Yes">
<cflocation addtoken="no" url="mpiadmin.cfm">
</cfif>
Can anyone tell me why this is failing (meaning the page reload)?
Thanks,
-Jones