Random filename after ftp upload in delphi
I am working on an application that needs to upload files to a server. I am using delphi and TIDFtp to upload files.
Everything works fine except for the filename after download. The file on my machine is called
and after uploading its name on the server, for example
How to fix it?
Here is my code:
IdFtp1.Host := 'host'; IdFtp1.Username := 'uname'; IdFtp1.Password := 'pass'; IdFtp1.Connect; IdFtp1.Put('test.txt'); IdFtp1.Disconnect;
source to share