(I think doing `upload = JSON.parse(response.env[:body])` would be clearer.)