TNRIS / api.tnris.org

Django RESTful API and PostgreSQL backend database management system for maintaining and serving Texas GIO's available data and content.

Home Page:https://api.tnris.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image uploading says 'this field is required', uploads image anyway

christoball opened this issue · comments

@jwhaney

When uploading images it returns errors 'this field is required' even though I'm choosing files and the images are being uploaded.

Screen Shot 2019-09-30 at 11 04 10 AM

Steps to reproduce:

  • Select add image in dataset collection.
  • Select file
  • Select 'Add Another Image'
  • Select file
  • Press 'Save'
  • Returns errors
  • navigate back out and return to the dataset collection.
  • The Images are uploaded, and if you tried to upload them again because it told you it didn't select any, you'll have multiple images (I didnt screen shot this)

just to document this, I'm gonna tag this as a future enhancement but the current image upload and caption form is behaving as it is supposed to (see below image with helper text).

Screenshot from 2019-09-30 11-48-10

the image needs to exist before a caption can be added. this is a timing issue of sorts because if you add both a new image and its new corresponding caption text at the same time, you get a form validation error. the image does end up saved to s3 if you exit the collection then come back and look at the images, but the caption is not saved.

for now, just be sure to add an image first, save and continue editing, then type the caption and save.

commented

workflow issue. resolved.