async fn verify_named_uploads(
conn: &mut PgConnection,
exercise_id: Uuid,
user_id: Uuid,
submission: &StudentExerciseSlideSubmission,
) -> Result<(), ControllerError>Expand description
Rejects a file-typed answer naming uploads this user did not make for this exercise, naming none at all, or naming the same upload as another task submission in the same slide submission. Also rejects a JSON answer that names files, before anything is written.
Unlocked, so lock_and_verify_named_uploads must repeat it inside the submission transaction.