Fix critical bug in get_upload