Highlighted

CFFTP upload failure until we delete same file from FTP

New Here ,
Jun 10, 2014

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

Views

162

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

CFFTP upload failure until we delete same file from FTP

New Here ,
Jun 10, 2014

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

Views

163

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 10, 2014 0
BKBK LATEST
Adobe Community Professional ,
Jun 21, 2014

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 21, 2014 1