i have indy 10 installed on Delphi 7 personal, and am trying to load a simple text file on server using ftp

here's my code

if ftp.Connected then ftp_Kitten.Disconnect;
ftp.Port := 21;
ftp.Put('c:\ida.txt', 'ida.txt', true);

and when i run my app, i am getting the following error :

Project1.exe raised exception class EIdRepluRFCError with message "APPE':command unrecognized'.Process stopped. Use step or run to continue

I am beginner in Delphi and after hours of researching the web, i truely don't know how to solve this issue.

Thanks for your help

Recommended Answers

All 2 Replies

I know nothing about APPE. Everything I found online refers to weaves and knits... ???

In any case, it appears to be a server error. Check that the server you are connecting to actually supports APPE. (I know Medusa doesn't.)

If you actually know what half this means, you know more than I.

Actually you were right, i used a different host and it worked)

Thanks for helping me out.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.