Updated upload example, normalized stream path

`os.tmpdir()` returns a path without a trailing slash at the end, so the following line constructs an invalid path to a temporary directory