openoakland / woeip

A platform for impacted communities to understand their local air quality and advocate for environmental justice.
https://woaq.org
MIT License
29 stars 16 forks source link

"Files match" message when files don't match #460

Closed gsehrlich closed 2 years ago

gsehrlich commented 2 years ago

Describe the bug Arbitrary pairs of files will trigger a "Success! Your files match" message.

To Reproduce Steps to reproduce the behavior:

  1. Go to "Upload"
  2. Create two blank text files
  3. Drag and drop both into the upload field
  4. See success message

Expected behavior The files are rejected with a "Files don't match" message or a "Neither file is in a GPS or DusTrak format" message.

Desktop (please complete the following information):

Labels

theecrit commented 2 years ago

Seems like the checks being run aren't catching file format. We have an error message for that in the wires.