Delphi-XE6 uploads files to an FTP server, beaten, why?

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.
July 9th 19 at 12:59
1 answer
July 9th 19 at 13:01
Are you sure you Put shut down correctly before disconnecting? Why it does not checks.
Again: in Delphi 7 everything works fine. - nikita.Stracke commented on July 9th 19 at 13:04
In delphi 7 and Indy version of the same old. Put 10ку and see whether to run your code on Indy 10 in Delphi 7. Most likely not, where the conclusion is that the implementation of methods indie changed and the old code is no longer usable. - abigail36 commented on July 9th 19 at 13:07
: Well, in that case, how can that be? - nikita.Stracke commented on July 9th 19 at 13:10
To compare the implementation of put in delphi 7 with put in Delphi XE. Or just look at changelog module works with the FTP. On the code I already wrote what to do. - abigail36 commented on July 9th 19 at 13:13
How to compare the implementation of put and how to view the changelog? - nikita.Stracke commented on July 9th 19 at 13:16
: And Yes, about the code you did not write anything. - nikita.Stracke commented on July 9th 19 at 13:19
: I code or wrote. Cm. the second review. About compare: Open the code of the method in the 9th version, to open the 10th, to compare with his hands and eyes. See Changelog in the same module work with the FTP. You'll see when you open idFTP - abigail36 commented on July 9th 19 at 13:22
And how to open it - the method's code? - nikita.Stracke commented on July 9th 19 at 13:25
CTRL+Clieck pometto. Or search all files search for - abigail36 commented on July 9th 19 at 13:28

Find more questions by tags Network programmingDelphiFTP