add additional query options for upload, and raise error in the event of an unexpected response body