I've searched this forum's archive and found a thread back in May that was similar to my problem, but that was left unanswered. So I'd like to re-open the issue. Hopefully someone can help this time around.
I'm trying to move or copy a file from a Cold Fusion server (running Win2000) using CFFTP to another server (in this case we'll call also win2000). Before I even tried CFFTP, I used a spearate FTP client to test my ftp access. Using CuteFTP, I was able to create folders, upload files, etc. But using CFFTP, all files I upload end up with a filesize of 0 bytes. Here's my code:
<cfftp action="OPEN" server=" username="username" password="password" stoponerror="Yes" connection="Connected? #CFFTP.Succeeded#<br>
<cfftp action="PUTFILE" stoponerror="Yes" localfile="docs/myfile.doc" remotefile="uploads/myfile.doc" transfermode="AUTO" connection="#CFFTP.ReturnValue#<br>
Even stranger is when #CFFTP.ReturnValue# will output "226 Transfer complete" but when I go to to check the file, it exists there with a file size of 0 bytes. I've tried different combinations of CFFTP settings and I've made sure I have full FTP access to the uploads folder, but I still get the same results.
Please help. A solution would be great. If there isn't a solution, and if somebody knows if this is just a bug, please confirm or deny. Thanks in advance.
minsan
I'm trying to move or copy a file from a Cold Fusion server (running Win2000) using CFFTP to another server (in this case we'll call also win2000). Before I even tried CFFTP, I used a spearate FTP client to test my ftp access. Using CuteFTP, I was able to create folders, upload files, etc. But using CFFTP, all files I upload end up with a filesize of 0 bytes. Here's my code:
<cfftp action="OPEN" server=" username="username" password="password" stoponerror="Yes" connection="Connected? #CFFTP.Succeeded#<br>
<cfftp action="PUTFILE" stoponerror="Yes" localfile="docs/myfile.doc" remotefile="uploads/myfile.doc" transfermode="AUTO" connection="#CFFTP.ReturnValue#<br>
Even stranger is when #CFFTP.ReturnValue# will output "226 Transfer complete" but when I go to to check the file, it exists there with a file size of 0 bytes. I've tried different combinations of CFFTP settings and I've made sure I have full FTP access to the uploads folder, but I still get the same results.
Please help. A solution would be great. If there isn't a solution, and if somebody knows if this is just a bug, please confirm or deny. Thanks in advance.
minsan