Strange error while trying to FTPSend lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- mrplumber · 2016-06-19 02:05 Hello, I'm trying to put some files on ftp server. At first it was partially working- correctly logging and making dir's, but still unable to upload anything. Now, it has stopped compiling, returning errors: Quoteftpsend.pas(475,9) Error: identifier idents no member "Owner" ftpsend.pas(478,10) Error: identifier idents no member "Owner" referring to: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   FSock := TTCPBlockSocket.Create;  FSock.Owner := self;  FSock.ConvertLineEnd := True;  FDSock := TTCPBlockSocket.Create;  FDSock.Owner := self; my code bases on: http://forum.lazarus.freepascal.org/index.php/topic,31990.msg205711.ht ml#msg205711 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i (...)uses{$DEFINE UseCThreads}{$IFDEF UNIX}{$IFDEF UseCThreads}  cthreads,{$ENDIF}{$ENDIF}    cmem, Classes, SysUtils, BaseUnix, sqldb, db, IBConnection, FBEventMonitor,blcksock,    smtpclient,FTPSend, smtpsend, ssl_openssl, ssl_openssl_lib ,mimemess, mimepart;//, FTPSend, synautil, synaip, synsock, synaclient;   (...)function SendFTP(ftp_ip, ftp_user, ftp_pwd, ftp_path, filePath: String) : Boolean;var  FTPClient : TFTPSend;  wyslanoFTP : Boolean = False;  //sciezkaFTP : String;begin  FTPClient := TFTPSendCreate;  FTPClient.TargetPort := cFTPProtocol;     //'21';  FTPClient.TargetHost := ftp_ip;  FTPClient.Username := ftp_user;  FTPClient.Password := ftp_pwd;  if not FTPClient.login then     WpisDoLogu('Errors.log', 'Cannot login to '+ ftp_ip)  //write error information to *log  else  begin     FTPClient.DirectFile := True;     FTPClient.DirectFileName := filePath// quite long but existing path to file      FTPClient.ChangeWorkingDir(ftp_path);     wyslanoFTP := FTPClient.StoreFile(filePath, false);     //wyslanoFTP := FTPClient.AppendFile(filePath);     FTPClient.Logout;   end;  FreeAndNil(FTPClient);  result := wyslanoFTP;end;                       //edit I've used another virtual machine, problem seems to be another time partially gone. Now I am able to receive an info about StoreFile result. It always fails if the file is not in my current project's dir. In other words- it's unable to send file from another path. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i      FTPClient.DirectFileName := filePath; //long filepath      FTPClient.DirectFile := False;     //FTPClient.ChangeWorkingDir(ftp_path);     if ftp_path <> FTPClient.GetCurrentDir then FTPClient.ChangeWorkingDir(ftp_path);    wyslanoFTP := FTPClient.StoreFile(filePath, false);      //wyslanoFTP := FTPClient.AppendFile(filePath);     FTPClient.Logout;         Remote dir is just '/'. edit2 I've changed my project, to send 'local' files. Problem is that they're appearing at ftp server, but empty. edit3 I have finally managed to send files by replacing  StoreFile with AppendFile . I haven't figured out why that error was occuring, why StoreFile doesn't work as it should and why I still cannot send file from any other path than program's. Maybe it will help sb one day.