getodk / collect

ODK Collect is an Android app for filling out forms. It's been used to collect billions of data points in challenging environments around the world. Contribute and make the world a better place! ✨📋✨
https://docs.getodk.org/collect-intro
Other
719 stars 1.37k forks source link

Finalizing a form with an attachment which is too big to be sent #6457

Open dbemke opened 1 week ago

dbemke commented 1 week ago

ODK Collect version

the store version 2024.2.4, the master version e828193dca70ecf0f9b299c641df0177d7e7c117

Android version

10, 14

Device used

Redmi 9T, Pixel 7a

Problem description

If a user finalizes a form containing an attachment which is too big (larger than the server's "max file size") to be sent to the server, the user can’t delete the form.

Steps to reproduce the problem

  1. Go to the form and attach a file which is too big to send to the server (e.g. in image widget world 108MB from https://drive.google.com/drive/u/1/folders/1IeuxQZU8Sw90PAOnTRlMToB3Wp_LuCoN. trees_registration_new_media.xlsx.txt

  2. Send the form.

    Expected behavior

    The user shouldn't be able to finalize a form with an attachment which is too big. The attachment should be verified before finalizing the form.

karntrehan commented 6 days ago

What should be the limit of the attachment size? Is this a config that can come from the server or should we have a configuration at the app side? This too seem to be a good first issue.