Skip to main content

verify_uploads_are_distinct

Function verify_uploads_are_distinct 

Source
pub fn verify_uploads_are_distinct(
    requested: &[Uuid],
) -> Result<(), ControllerError>
Expand description

Rejects a submit naming the same upload twice.

Deduplicating instead would record the file twice under one submission and list it twice in a download, and would hide a client defect while doing so. There is no answer a duplicate could sensibly mean, so it is reported rather than repaired.