Re: FTP Upload
- From: "Liz" <liz_wants_no_spam@xxxxxxxxxxxxxxxxxxxxx>
- Date: 30 Oct 2006 13:45:56 -0700
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
.
- Follow-Ups:
- Re: FTP Upload
- From: Bill
- Re: FTP Upload
- References:
- FTP Upload
- From: Bill
- FTP Upload
- Prev by Date: Re: browsing unpublished members|properties ?
- Next by Date: Re: Time trial limitation
- Previous by thread: Re: FTP Upload
- Next by thread: Re: FTP Upload
- Index(es):
Relevant Pages
|