hotosm / OpenMapKitServer

OpenMapKit Server is the lightweight server component of OpenMapKit that handles the collection and aggregation of OpenStreetMap and OpenDataKit data.
http://openmapkit.org
BSD 3-Clause "New" or "Revised" License
4 stars 9 forks source link

No image shown in submissions table #54

Closed smit1678 closed 5 years ago

smit1678 commented 6 years ago

In an ODK survey, no image is shown in the submissions table even though the image exists. This is part of a survey that collects an image. When clicking download attachments, the images are downloaded.

openmapkit server 2018-08-28 08-20-02
willemarcel commented 6 years ago

This form image is not stored in the image field but as village_picture: http://zambia.hotosm.org/omk/data/submissions/Zambia_Minigrid_Village_Survey_V02/a6ba2370-4432-43ff-9ff3-287228a0c541/data.json

Do you think we can instruct the users to set the image field as "image" in the form?

smit1678 commented 6 years ago

Do you think we can instruct the users to set the image field as "image" in the form?

That's a good catch. Thanks @willemarcel. You're probably right, we should provide documentation that it needs to be the image field. I'm not sure there is another way to grab the field type instead of the name but I think that makes sense.

willemarcel commented 6 years ago

I think it's better to set the image field. The users can add more than one image field, so it wouldn't solve the problem and it would be more complicated to handle.