medic / cht-core

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.
https://communityhealthtoolkit.org
GNU Affero General Public License v3.0
469 stars 217 forks source link

Clarify support for file uploads and accepted media types #7531

Open dianabarsan opened 2 years ago

dianabarsan commented 2 years ago

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.

latin-panda commented 2 years ago

XLSForms Reference Table