Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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