Resuming ftp upload

Giganews Newsgroups
Subject: Resuming ftp upload
Posted by:  Antti Kurenniemi (NOant…
Date: Tue, 22 Mar 2005

Hello all.

I could use a little help with resuming ftp upload. This is using Delphi
2005 and Indy 10.0.20

I'm trying to automate a backup file upload, from one server to a remote
location every night. The backup is rather large (500 Mb +), so it's not all
that rare that the upload is interrupted at some point. The server supports
resuming uploads, so I would like to make use of that.

I have a non-resuming connection (upload full file every time) working
pretty much as I want to, but I can't get the resuming to work. I'm doing it
something like this (TempFile is a string containing the local file name +

if (IdFtp.ResumeSupported) then
  IdFTP.Put(TempFile, ExtractFileName(TempFile), True)  // Try to resume an
  IdFTP.Put(TempFile);  // Upload the whole file

But I keep getting all sorts of errors (socket error #10053 for one). So
first, is this the right way to go about it at all? Second, is there a
sample somewhere that I could check?

Antti Kurenniemi