Upload file

Fix bug with upload_file() with multipart=True, where the incorrect file pointer was being passed to upload_part_from_file()