Fix wrong response being checked for uploads