Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Aug : Re: ftp.put errors with Indy 10.1.5. Am I checking for them correctly.
| Subject: | Re: ftp.put errors with Indy 10.1.5. Am I checking for them correctly. |
| Posted by: | "Kerry Frater" (ker..@jcs.co.uk) |
| Date: | Fri, 4 Aug 2006 17:49:14 |
Thanks for the reply. In the full applet I do do a changedir before I use
"put"
I should have been clearer in the question.
If PUT fails in any way does it ALWAYS raise an exception. I am not getting
any errors in the applet, but it is claimed by the ftp server people that
some files don't always get uploaded. I am not allowed to list the contents
of the folder, only upload to it. So I can't check if the file I am
uploading is actually there after the upload code completes..
Before I moan that the issue is at the other end and not in my ftp client
applet, I am looking for someone with more experience with the Indy10 syste
to tell me if
try
MyFTP.PUT(...);
except
{*** If MyFTP.PUT fails in any way will this block ALWAYS be executed
***}
end;
If the except section is always executed when PUT doesn't successfully
upload the file then I know that the issue is at the server end as I have
code that logs the file details that are bing PUT to the ftp server in this
EXCEPT block of code.
Kerry
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:44d22cf1$1@newsgroups.borland.com...
>
> "Kerry Frater" <kerry@jcs.co.uk> wrote in message
> news:44d1bc68$1@newsgroups.borland.com...
>
> > 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
>
> Then how do you know that the files are not being uploaded properly?
>
> > MyFTP.Put(FromFolder+Memo1.Lines[i],MyUpDir+Memo1.Lines[i],false);
>
> I would suggest navigating to the target folder first before then
uploading
> the files to it, ie:
>
> MyFTP.ChangeDir(MyUpDir);
> for i := 0 to FileList.Lines.Count -1 do begin
> MyFTP.Put(FromFolder + Memo1.Lines[i], Memo1.Lines[i], false);
>
>
> Gambit