Copy link to clipboard
Copied
I have installed ColdFusion and we noticed a strange issue with cfttp, if file upload fails due to any technical reason then all next upload for the same file will fails until we delete file from FTP location & upload fresh copy.
We configured automated jobs with cfftp upload code, so every time I've to delete the file which is failed while uploading, which is not practical solution.
please help me to resolve this issue permanently. Thanks in Advance.
I've mentioned CFFTP code below
<cfftp
action="PUTFILE"
server="ftp.abc.com"
username=" "
password=" "
passive="Yes"
stoponerror="Yes"
localfile=”ABC.txt"
remotefile="ABC.txt"
transfermode="AUTO"
timeout="600"
>
Copy link to clipboard
Copied
It may have nothing to do with your question, but I would - to avoid character set problems - replace the first set of quotes in the line localfile=”ABC.txt"
, giving localfile="ABC.txt"
.
Now, on to your question. Add the attribute failIfExists="no". This is meant for the getFile action, it just might help here.