Re: FTP partial upload

Giganews Newsgroups
Subject: Re: FTP partial upload
Posted by:  Remy Lebeau (TeamB) (no.spam@no.spam.com)
Date: Mon, 28 Feb 2005

"Audrey" <AudreyII…@hotmail.com> wrote in message
news:EAE6930B68C1E240AudreyII…@hotmail.com...

> Socket Error # 10058
> Cannot send or receive after socket is closed

Your code disconnected the socket and then TIdFTP tried to keep writing to
the socket afterwards.

> why would it return Transfer Complete when the file file
> was only partially uploaded?

The status message is in a try..finally block, so it is always issued
regardless of how the transfer actually terminated.

Gambit

Replies

In response to

FTP partial upload posted by Audrey on Mon, 28 Feb 2005