Rough skeleton code around upload/validation.