'This is a wrapper around "write" that will upload a local file
to the remote filesystem.
:param local_filename: The local file to read and then upload to the
remote system.
:param remote_filename: The remote file to create and write contents to.
:return: The message to show to the user.'

def upload(self, local_filename, remote_filename):

    try:
        fh = file(local_filename, 'r')
    except:
        return 'Failed    to    open    local    file    for    reading.'
    else:
        file_content = fh.read()
        fh.close()
        self.write(remote_filename, file_content)
        return 'Success.'
