def tempfile_content(tfile):
    """read the contents of the temp file"""
    if not tfile:
        return None
    with open(tfile.name, 'rb') as temp:
        updated_tf_contents = temp.read()
        return updated_tf_contents.decode('utf-8')
