• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CFFTP upload failure until we delete same file from FTP

Guest
Jun 10, 2014 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

212

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
community guidelines
Community Expert ,
Jun 21, 2014 Jun 21, 2014

Copy link to clipboard

Copied

LATEST

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.

Votes

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
community guidelines
Resources
Documentation