Skip to content

Add CSV validators and frontend error reporting for user uploads #23

@anastasia

Description

@anastasia

Right now if a user uploads a CSV with incorrect headers or bad column values, our logic fails silently. We should validate CSVs on upload, and add error reporting so that the user can see what file is expected of them.

Here's our CSV parsing method:

def parse_csv_upload(csv_upload):

Here's where we can communicate errors to user: https://github.com/dhmit/sonification/blob/0b3991516f64a235ff7b620d4e8636aa821b32ab/frontend/components/UploadFileInput.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions