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
Post a Comment