How do I upload to an FTP site?

Asked

Viewed 556 times

3

Hello, I have an FTP account on a domain, it is password protected but I need a Delphi application to upload files instead of Filezila and others. How can I upload files? I tried according to some websites and in none of them I was successful, you can check the list below. I ask you to post responses of proven effectiveness.

http://balaiotecnologico.blogspot.com.br/2010/10/fazendo-download-e-upload-usando-ftp.html

http://www.devmedia.com.br/forum/transferindo-arquivos-via-ftp-pelo-delphi/433855

  • How is your code with the links you used? Which error returned?

  • Thanks! I already fixed the Aki problem!

1 answer

4


Add the component TIdFTP and use the command below:

IdFTP1.Host := 'IP do host FTP';

IdFTP1.username := 'Usuário do host FTP';

IdFTP1.password := 'Senha do host FTP';

IdFTP1.connect; {conecta e se loga}

IdFTP1.Put('Arquivo de envio');

Browser other questions tagged

You are not signed in. Login or sign up in order to post.