Skip to main content
June 10, 2014
Question

CFFTP upload failure until we delete same file from FTP

  • June 10, 2014
  • 1 reply
  • 239 views

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"
>

This topic has been closed for replies.

1 reply

BKBK
Community Expert
Community Expert
June 21, 2014

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.