On Tue, Mar 2, 2010 at 2:20 PM, Vinicius Carvalho
<[email protected]> wrote:
> Hello there! Unfortunately this approach did not solve our problem. On a
> connection error, we still get a 226 - Transfer Complete code. So no matter
> if the file is complete or not, we keep getting "success" status.

In some cases in TCP/IP, the server can not detect a dropped connected
from a closed. Thus, there will be cases where FtpServer will think
the client is done transferring the file, and it will therefore send a
success reply back. It that's the case for you, you need some other
method to determine that a transfer is complete. A common way is for
the client to upload using a temporary file name (or in a different
directory) and then, after successful upload, move the file into the
final name.

/niklas

Reply via email to