From Chris Lundy (NAC Developer):
Also Dallas mentioned that users can't add captions to the image uploads and that would be a nice feature. When we upload images from the widget, these are the fields we set - it might make sense to match these if they're not already:
data.type = 'image'
data.file_name = item.fileName // from form
data.center_id = "nwac"
data.forecast_zone_id = []
data.caption = item.caption // from form
data.taken_by = this.data.name // observer name from form
data.date_taken = this.data.start_date // observer date from form
data.title = "Public Observation: " + this.data.location_name // location name from form
data.access = this.data.photo_usage // permission from form
data.source = 'public'
data.category = JSON.stringify(['public observation'])
From Chris Lundy (NAC Developer): Also Dallas mentioned that users can't add captions to the image uploads and that would be a nice feature. When we upload images from the widget, these are the fields we set - it might make sense to match these if they're not already:
data.type = 'image' data.file_name = item.fileName // from form data.center_id = "nwac" data.forecast_zone_id = [] data.caption = item.caption // from form data.taken_by = this.data.name // observer name from form data.date_taken = this.data.start_date // observer date from form data.title = "Public Observation: " + this.data.location_name // location name from form data.access = this.data.photo_usage // permission from form data.source = 'public' data.category = JSON.stringify(['public observation'])
https://www.figma.com/file/Bai2w7x0vUakL5WRjPGRg7/AVY-Native-App?type=design&node-id=2554%3A115&mode=design&t=0pFsgZSmIwd6RY8v-1