public function fput(string $remoteFile, $handle, int $resumePos = 0)
    {
        if (!@ftp_fput($this->ftp, $remoteFile, $handle, FTP_BINARY, $resumePos)) {
            throw new Exception(sprintf("Cannot copy data from file handle to %s", $remoteFile));
        }

        return $this;
    }
public function fput(string $remoteFile, $handle, int $resumePos = 0)
    {
        if (!@ftp_fput($this->ftp, $remoteFile, $handle, FTP_BINARY, $resumePos)) {
            throw new Exception(sprintf("Cannot copy data from file handle to %s", $remoteFile));
        }

        return $this;
    }
public function fput ( string $ remoteFile , $ handle , int $ resumePos = 0 ) { if ( ! @ ftp_fput ( $ this -> ftp , $ remoteFile , $ handle , FTP_BINARY , $ resumePos ) ) { throw new Exception ( sprintf ( "Cannot copy data from file handle to %s" , $ remoteFile ) ) ; } return $ this ; }
Read directly from file and put data on ftp-server.

@param string $remoteFile Remote file path.
@param mixed  $handle     File handle.
@param int    $resumePos  [optional] Start or resume position in file.

@return $this
@throws Exception
Read directly from file and put data on ftp - server .