delphi - FtpOpenFile returns nil instead of file handle when uploading -


i'm transferring file using ftp in delphi.

i able connect ftp account ok when try , upload file ftpopenfile function returns nil instead of handle file uploaded.

hintfile := ftpopenfile(hintconnect,pchar(tgtfn),generic_write,ftp_transfer_type_binary,0); 

if log ftp site using ftp client application , same credentials can upload file without problem.

any suggestions appreciated.

try last error, documentation says all:

"returns handle if successful, or null otherwise. retrieve specific error message, call getlasterror."

http://msdn.microsoft.com/en-us/library/aa384166(vs.85).aspx


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -