def upload_file(filename, server, account, projname, language=None,<EOL>username=None, password=None,<EOL>append=False, stage=False, date_format=None):
stream = transcode_to_stream(filename, date_format)<EOL>upload_stream(stream_json_lines(stream),<EOL>server, account, projname, language=language,<EOL>username=username, password=password,<EOL>append=append, stage=stage)<EOL>
Upload a file to Luminoso with the given account and project name.

Given a file containing JSON, JSON stream, or CSV data, this verifies
that we can successfully convert it to a JSON stream, then uploads that
JSON stream.