D
D
docbrain2016-05-19 18:34:45
Delphi
docbrain, 2016-05-19 18:34:45

Delphi-XE6 upload files to FTP server broken, why?

I am writing an FTP client in Delphi-XE6 IDE. I am using the following code:

IdFTP1.Connect;
IdFTP1.ChangeDir(FolderName);
IdFTP1.Put(Indnum, Indnum);
IdFTP1.Disconnect;
Timer3.Enabled := True;
Timer4.Enabled := False;

In Delphi-7, the above construction worked fine (only after IdFTP11.Connect, more parameters had to be added). But when I used it in XE6, a problem arose - the files began to come to the server broken. Text files come either empty or with some kind of gibberish inside, pictures are loaded empty, they cannot be opened.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question