Hello, I need to know how can I, using CFFTP, make "remotefilename" be the
same as "localfile" when it's uploaded...
using CFFILE, I just leave the target name empty, and it works, but using
CFFTP it doesn't work.
If I make remotefile="" it doesn't work.
This is the code:
/////////form.cfm///////////////////
<cfform action="test.cfm?requesttimeout=500" method="POST" enctype="multipart/form-data">
Select a File...<br>
<input type="File" name="FILETEST">
</cfform>
///////end form.cfm///////////////////
///////test.cfm///////////////////////
Assume that it made the connection to the FTP server
<CFFTP action="open"......connection="test".....etc.......>
<cfftp ACTION="PUTFILE"
STOPONERROR="YES"
CONNECTION="test"
TIMEOUT= "500"
REMOTEFILE="" ¿¿¿¿¿FILETEST DESTINE????????
LOCALFILE="# FILETEST #"
TRANSFERMODE="auto"
PASSIVE="NO">
///////end test.cfm////////////////////
same as "localfile" when it's uploaded...
using CFFILE, I just leave the target name empty, and it works, but using
CFFTP it doesn't work.
If I make remotefile="" it doesn't work.
This is the code:
/////////form.cfm///////////////////
<cfform action="test.cfm?requesttimeout=500" method="POST" enctype="multipart/form-data">
Select a File...<br>
<input type="File" name="FILETEST">
</cfform>
///////end form.cfm///////////////////
///////test.cfm///////////////////////
Assume that it made the connection to the FTP server
<CFFTP action="open"......connection="test".....etc.......>
<cfftp ACTION="PUTFILE"
STOPONERROR="YES"
CONNECTION="test"
TIMEOUT= "500"
REMOTEFILE="" ¿¿¿¿¿FILETEST DESTINE????????
LOCALFILE="# FILETEST #"
TRANSFERMODE="auto"
PASSIVE="NO">
///////end test.cfm////////////////////