Fixed upload regression

Upload now returns correct response.