Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Aug : ftp.put errors with Indy 10.1.5. Am I checking for them correctly.
| Subject: | ftp.put errors with Indy 10.1.5. Am I checking for them correctly. |
| Posted by: | "Kerry Frater" (ker..@jcs.co.uk) |
| Date: | Thu, 3 Aug 2006 10:06:13 |
I have a small upload program used to ftp files to a particular site. All
seems fine except that my user is reporting that some files are not being
uploaded. There are no error's shown in my upload applet nor on the server
side (not my code there).
I test that I am uploading this way
try
for i := 0 to FileList.Lines.Count -1 do begin
MyFTP.Put(FromFolder+Memo1.Lines[i],MyUpDir+Memo1.Lines[i],false);
{put code here that logs and processes the file uploaded
prsuming that if .PUT errored this line would never be reached}
end;
except
{put code here that logs and process the file based on .put
failing}
end;
Is this the correct approach?
Kerry