USGS-WiM / stnweb2

Other
0 stars 0 forks source link

unable to upload file after clicking one file type then switching to another type #431

Closed lprivette closed 2 years ago

lprivette commented 2 years ago

I think the form just needs be updated on file type change, some uncompleted fields from previously selected types might be hanging around and causing the error.

Steps to Reproduce:

  1. At a site, go to the HWM tab and edit a HWM
  2. Scroll to bottom, expand the HWM File Information section
  3. Click 'Add File' button and then select 'Photo' as the file type.
  4. Then select 'Other' as the file type and complete all mandatory fields
  5. Click 'Create File' and note that the error message pops up stating there are incomplete fields image