pub fn validate(data: &[u8]) -> AppResult<&'static str>
Checks an upload and returns its content type.