public function put($localFile, $remoteFile, $mode = FTP_IMAGE, $startPos = 0) {
        if (false === @ftp_put($this->getConnection(), $remoteFile, $localFile, $mode, $startPos)) {
            throw $this->newFTPException(sprintf("put %s into %s failed", $localFile, $remoteFile));
        }
        return $this;
    }
public function put($localFile, $remoteFile, $mode = FTP_IMAGE, $startPos = 0) {
        if (false === @ftp_put($this->getConnection(), $remoteFile, $localFile, $mode, $startPos)) {
            throw $this->newFTPException(sprintf("put %s into %s failed", $localFile, $remoteFile));
        }
        return $this;
    }
public function put ( $ localFile , $ remoteFile , $ mode = FTP_IMAGE , $ startPos = 0 ) { if ( false === @ ftp_put ( $ this -> getConnection ( ) , $ remoteFile , $ localFile , $ mode , $ startPos ) ) { throw $ this -> newFTPException ( sprintf ( "put %s into %s failed" , $ localFile , $ remoteFile ) ) ; } return $ this ; }
Uploads a file to The FTP server.

@param string $localFile The local file.
@param string $remoteFile The remote file.
@param int $mode The mode.
@param int $startPos The start position.
@return FTPClient Returns this FTP client.
@throws FTPException Throws a FTP exception if an I/O error occurs.
Uploads a file to The FTP server .