Everything works fine when i upload the file using the codes below, but it upload a 0 bytes file. Can anyone resolve this ?
<cfset filename="mp3.txt">
<cfset myfile="D:/new/mp3/mp3.txt">
<cfftp action="open"
server="username="somename"
password="somepassword"
stoponerror="no"
Connection="myconnection">
<cfif cfftp.Succeeded is "Yes">
<cfoutput>Connection Established</cfoutput>
<cfelse>
<cfoutput>#cfftp.ErrorText#</cfoutput>
<cfoutput>#cfftp.ErrorCode#</cfoutput>
</cfif>
<cfoutput>
<cfftp connection="myconnection"
action="PutFile"
RemoteFile="mp3.txt"
LocalFile="D:/new/mp3/mp3.txt">
<cfif cfftp.Succeeded is "Yes">
Connection Established
<cfelse>
#cfftp.ErrorText#
#cfftp.ErrorCode#
</cfif>
</cfoutput>
<cfset filename="mp3.txt">
<cfset myfile="D:/new/mp3/mp3.txt">
<cfftp action="open"
server="username="somename"
password="somepassword"
stoponerror="no"
Connection="myconnection">
<cfif cfftp.Succeeded is "Yes">
<cfoutput>Connection Established</cfoutput>
<cfelse>
<cfoutput>#cfftp.ErrorText#</cfoutput>
<cfoutput>#cfftp.ErrorCode#</cfoutput>
</cfif>
<cfoutput>
<cfftp connection="myconnection"
action="PutFile"
RemoteFile="mp3.txt"
LocalFile="D:/new/mp3/mp3.txt">
<cfif cfftp.Succeeded is "Yes">
Connection Established
<cfelse>
#cfftp.ErrorText#
#cfftp.ErrorCode#
</cfif>
</cfoutput>