Question
Progress bar to show the status of file upload to ftp server
Hi,
I am trying to upload file to ftp server with CFFTP tag. the code that i am using is:
<cfset variables.uploadedFileServerName = "TestUploadFile" & "/" & "#fileName#" />
<!---<cfset fileName = uploadResult.serverfile/>--->
<cfftp connection="session.ftpConn"
action="open"
server="uploaduat.flexnetoperations.com"
username="some user"
password="password"
stoponerror="Yes"
timeout="90000">
Did it open connection? <cfoutput>#cfftp.succeeded#</cfoutput><br />
<cfif cfftp.succeeded>
<cfftp connection = "session.ftpConn"
action = "PutFile"
localFile="#form.FileContents#"
remoteFile="#variables.uploadedFileServerName#"
stoponerror="Yes"
passive = "Yes"
timeout="90000">
<P>Did it succeed? <CFOUTPUT>#CFFTP.Succeeded#</CFOUTPUT>
<cfif CFFTP.Succeeded>
<P>Close the connection:
<CFFTP ACTION="close"
CONNECTION="session.ftpConn"
STOPONERROR="Yes">
<P>Did it succeed? <CFOUTPUT>#CFFTP.Succeeded#</CFOUTPUT>
<cfset form.FileContents = ""/>
<cfset fileId = URL.fileId/>
<script type="text/javascript" language="JavaScript">
<cfoutput>
Is there a way to show the progressbar to show the progress of file upload to ftp server to the user?
Thanks in advance
