I'm writing an FTP client in IDE Delphi XE6. Use 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 design worked fine (only after IdFTP11.Connect, you had to add parameters). But when I used it in XE6, there is a problem - the files started to come to the server is broken. Text files come either blank or with some gibberish inside, pictures are loaded empty and cannot be opened.