I'm using the component TIdFTP to upload some files to an FTP server. My problem is that for some files, only a fraction of the actual filesize is uploaded(1,49 kb out of 49,5 kb in one case). This seems to only happen if I try oploading .exe files, i havent had any problem with .txt files, exept from when I rename my .exe file to a .txt file, and upload, i get the same error, so perhaps it could be the size(?). I have uploded a 60,9 kb .txt file without problems though..
Pretty short, the source code is something like this:
I have set up Host, Port, User and Password.
I have the same problem using IdFTP->Get, if anyone has any kind of solution to this problem it would be greatly apriciated.
Pretty short, the source code is something like this:
I have set up Host, Port, User and Password.
Code:
IdFTP->Connect();
IdFTP->ChangeDir("A Dir");
IdFTP->Put("c:\\Programs\\Stuff\\More Stuff\\Some exe.exe", "Some exe.exe", false);
IdFTP->Disconnect();