The CHT Core Framework makes it faster to build responsive, offline-first digital health apps that equip health workers to provide better care in their communities. It is a central resource of the Community Health Toolkit.
What feature do you want to improve?
Currently, we impose no limitation on what file uploads we support in Enketo forms.
For example file form: https://gist.github.com/dianabarsan/f325fe0070c690df634822a0525556b1
This form has a photo, video, audio and "/" mediatype upload inputs.
Describe the improvement you'd like
Clarify whether or not we support non-image media type uploads.
If we do, add support to actually handle these uploads in webapp, and show either previews or download links.
If we don't, change the way we handle the form to inform configurers that these uploads are not supported (ideally before the form is uploaded).
Describe alternatives you've considered
Hide fields we don't support?
Change the form transform so upload fields are removed?
Additional context
Ran into this while reviewing new work on cht-android to support file uploads.
What feature do you want to improve? Currently, we impose no limitation on what file uploads we support in Enketo forms. For example file form: https://gist.github.com/dianabarsan/f325fe0070c690df634822a0525556b1 This form has a photo, video, audio and "/" mediatype upload inputs.
Describe the improvement you'd like Clarify whether or not we support non-image media type uploads. If we do, add support to actually handle these uploads in webapp, and show either previews or download links. If we don't, change the way we handle the form to inform configurers that these uploads are not supported (ideally before the form is uploaded).
Describe alternatives you've considered Hide fields we don't support? Change the form transform so upload fields are removed?
Additional context Ran into this while reviewing new work on cht-android to support file uploads.