Im trying to upload an image to a sftp server with the following code:
//$this->sftp is a fully functioning ssh2_sftp variable $remotefile = "filename.jpg