rcpch / national-paediatric-diabetes-audit

A django application to audit the care of children and young people with diabetes in England and Wales.
0 stars 1 forks source link

Don't handle or save CSV upload with additional columns #349

Closed mbarton closed 1 week ago

mbarton commented 3 weeks ago

If they have columns that don't match the template, error out immediately and say what extra columns they need to remove. It's important not to save the CSV file at all in this case as it may contain personal information we are not allowed to store.

NB: if they don't specify any headers at all (#348) then the best we can do is count the columns and error if the count doesn't match