Re: FTP Upload



Bill wrote:


Are there any good components or source that works well?
I know that Indy can do this but I am not sure how it works.


idftp1.Host:='ftpserver';
idftp1.Username:='myusername';
idftp1.Password:='mypassword';
idftp1.Passive:=true; // set this if you are on a shared host, etc
idftp1.Connect(true, 30); // connect and login..
idftp1.ChangeDir('somedir'); // change directory relative to current dir
caption:=idftp1.RetrieveCurrentDir; // get current path
idftp1.Put('c:\nxddcg.zip', 'nxddcg.zip', false); // put up file
idftp1.Quit; // log out

procedure TForm1.IdFTP1Work(Sender: TObject; AWorkMode: TWorkMode;
const AWorkCount: Integer);
begin
caption:=inttostr(aworkcount);
end;

will show the size of the file uploadeds progress - if you get the
files size to start with you can set the max etc, as well any k/s etc

--
Liz the Brit
Delphi things I have released: http://www.xcalibur.co.uk/DelphiThings
.



Relevant Pages

  • Simple solution needed for remote software to communicate with server.
    ... their bill each month. ... Have the service application connect to our server. ... Send about 100k of data to server so we can verify they have paid their ... I tried a couple of things with Indy, ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Simple solution needed for remote software to communicate with server.
    ... > their bill each month. ... Have the service application connect to our server. ... Send about 100k of data to server so we can verify they have paid ... > I tried a couple of things with Indy, ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Michelin Problems at Indy?
    ... have sent in their representatives to the track and see it for ... themselves or possibly foot the bill for one of the teams to come and ... F1 testing is not allowed at Indy. ...
    (rec.autos.sport.f1)
  • Re: Michelin Problems at Indy?
    ... have sent in their representatives to the track and see it for ... themselves or possibly foot the bill for one of the teams to come and ... F1 testing is not allowed at Indy. ...
    (rec.autos.sport.f1)