[ 4co_R @ 14.11.2010. 13:32 ] @
Pozdrav...
Nikako mi ne polazi za rukom da napravim program kojim bi izvrsio upload odredjenog fajla na www.megaupload.com ili neki slican sajt.Koristio sam i google ali nista znacajnije nisam uradio.
Da li imate neku ideju kako to da uradim?
Gde mogu da nadjem neki tutorial,source code?
Hvala
[ 4co_R @ 16.11.2010. 00:48 ] @
Nasao sam resenje.

Code:

procedure TForm1.Button1Click(Sender: TObject);
var
ftp: TChilkatFtp2;
success: Integer;
localFilename: String;
remoteFilename: String;

begin
ftp := TChilkatFtp2.Create(Self);

//  Any string unlocks the component for the 1st 30-days.
success := ftp.UnlockComponent('Anything for 30-day trial');
if (success <> 1) then
  begin
    ShowMessage(ftp.LastErrorText);

  end;
ftp.Hostname := 'hostname';
ftp.Username := 'YourUsername';
ftp.Password := 'YourPassword';
ftp.Passive := 1;
success := ftp.Connect();
if (success <> 1) then
  begin
    ShowMessage(ftp.LastErrorText);
  end;
success := ftp.ChangeRemoteDir('YourDir');
if (success <> 1) then
  begin
    ShowMessage(ftp.LastErrorText);
  end;
localFilename := 'FileForUpload';
remoteFilename := 'FileName';
success := ftp.PutFile(localFilename,remoteFilename);
if (success <> 1) then
  begin
    ShowMessage(ftp.LastErrorText);
  end;
ftp.Disconnect();
ShowMessage('File Uploaded!');
end;



[ salaczr @ 16.11.2010. 07:47 ] @
Evo wrapper-a za TIdFTP

http://www.koders.com/delphi/f...AA61810A93A01377.aspx?s=ftp#L2

pozdrav
[ 4co_R @ 16.11.2010. 10:22 ] @
Hvala na pomoci.