unit uFTPClient;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, IdBaseComponent, IdComponent,
  IdTCPConnection, IdTCPClient, IdExplicitTLSClientServerBase, IdFTP,
  Vcl.StdCtrls;

type
  TForm2 = class(TForm)
    IdFTP: TIdFTP;
    bConnect: TButton;
    procedure bConnectClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form2: TForm2;

implementation

{$R *.dfm}

procedure TForm2.bConnectClick(Sender: TObject);
begin
idFTP1.Host:='ftp_server.ru';   //FTP-сервер
idFTP1.Port:=21;                  //порт ФТП сервера
idFTP1.Username:='Логин';
idFTP1.Password:='Пароль';
idFTP.Connect;
idFTP1.Put('Файл_который_нужно_загрузить_на_сервер');
idFTP1.Disconnect;
end;

end.
