fix upload callback when not a corpus