upload_file(): Use basename when deriving the name from a file object
Merge pull request #232 from brightinteractive/upload_file_object_default_obj_name_to_basename

upload_file(): Use basename when deriving the name from a file object