You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is only my setup or an issue for others.
Steps to reproduce:
Create a new form with a file upload field
Deploy the form
Open the form (loads via enketo)
The placeholder text shows a max file size of 5MB
Fill in and Submit the form
A new blank form will eventually load with the correct max file size (default 10MB)
Notes:
a) You can actually submit a larger file (up to real 10MB limit) even when it says 5MB
b) If you refresh the page after step 6, the placeholder text goes back to 5MB
c) I've increased the value of DEFAULT_CONTENT_LENGTH in common.py and this changes the real upload limit, the placeholder text still initially shows 5MB
d) I've dug around a little and see that enketo should be pulling this value from kobocat via the x-openrosa-accept-content-length header and 5MB seems to be the default that enketo sets in it's own settings DEFAULT_MAX_SIZE
The text was updated successfully, but these errors were encountered:
I've been using KPI to create and deploy the form. I'm wondering if it has to do with the fact that I do not have SSL setup. I had issues getting it setup with Let's Encrypt, so am currently playing with a staging setup that does not have SSL setup. I am seeing a JS error in my Developer Toolbar that "Service workers are not supported on this browser" and my understanding is server workers need SSL.
I was also seeing this issue on another setup that had SSL setup, but it appears to have some issue with enketo authentication. I am seeing a "Failed to load resource: the server responded wth a status of 401 (Unauthorized) for /submission/max-size/::qEbVFQ4gl
My current guess is there are setup/configuration issues for these two setups and not actually and so I'm closing this ticket for now.
I just tested this with KPI on one of our production servers (kf.kobotoolbox.org), and I see the same problem where the incorrect < 5MB limit is shown until after the first submission is made. After that, it shows < 10MB as expected. I'm going to reopen the issue and leave it in this repo, assuming that it's somehow KoBoCAT's responsibility to communicate the right upload limit to Enketo. This might not be quite right, but we'll see.
Not sure if this is only my setup or an issue for others.
Steps to reproduce:
Notes:
a) You can actually submit a larger file (up to real 10MB limit) even when it says 5MB
b) If you refresh the page after step 6, the placeholder text goes back to 5MB
c) I've increased the value of DEFAULT_CONTENT_LENGTH in common.py and this changes the real upload limit, the placeholder text still initially shows 5MB
d) I've dug around a little and see that enketo should be pulling this value from kobocat via the x-openrosa-accept-content-length header and 5MB seems to be the default that enketo sets in it's own settings DEFAULT_MAX_SIZE
The text was updated successfully, but these errors were encountered: