PWA on Android crashes when attaching video/audio files via file picker (JPEG/PDF work fine)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- android, javascript
- Domain
- frontend, mobile-dev
Research direction
No file or test path is named. Start by reproducing the upload flow in the Android PWA with audio and video files around the reported size threshold, then trace the file-upload handling; done means larger media selections no longer crash while JPEG and PDF uploads continue to work.
Written by the indexing model from the issue text.
Description
Environment
· Nextcloud version: 34.0.1
· Nextcloud Forms version: 5.3.4
· Client: Android PWA (installed via "Add to Home Screen" from Google Chrome)
· Android version: 12 (MIUI 14)
· Android System WebView version: 150.0.7871.46
· Device: XIAOMI Poco x3 nfc
Steps to reproduce
- Open a form with file upload in the PWA
- Tap upload and select a video file (.mp4)
- Test with files of different sizes
Actual behavior
· 2.06 MB video → uploaded successfully
· 2.42 MB video → crash / error
· JPEG images up to 8 MB → uploaded successfully regardless of size
· The crash happens immediately on file selection, before network upload
Root cause (assumed)
Android WebView's file picker has a fixed IPC buffer (~2 MiB) when transferring selected files to the PWA. For video/audio, WebView likely tries to read metadata or generate a thumbnail within this limited buffer. Images are handled differently by the system media provider, bypassing this limit. This is a known class of WebView limitation, and a workaround on the Forms side is needed (e.g., chunked file reading).
- Dominant language
- JavaScript
- Stars
- 382
- Forks
- 127
- Avg merge
- 20h 26m
- Merged PRs (30d)
- 73
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nextcloud/forms
-
[Bug]: Forms: `"CustomMessage":"The filename fallback must only contain ASCII characters."}` errorOpen1. to develop bug upstream
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
nextcloud/forms#3684 · 4 comments ·
Maintainers usually reply within 1 day
-
0. Needs triage enhancement
Difficulty 3/5 1-2 days Newbie friendliness 67/100
nextcloud/forms#3683 · 1 comment ·
Maintainers usually reply within 1 day
-
1. to develop bug pending fix regression
Difficulty 3/5 1-2 days Newbie friendliness 65/100
nextcloud/forms#3682 · 1 comment ·
Maintainers usually reply within 1 day
-
Replace description fields with NcRichTextMay be free again @vishruthasgowda claimed this 42 days ago, and no pull request is open. Open1. to develop enhancement feature: 📑 form creation good first issue javascript
nextcloud/forms#3587 · 2 comments · 1 reaction · 1 assignee ·
Maintainers usually reply within 1 day
-
1. to develop enhancement feature: 📝 submitting responses technical debt
Difficulty 3/5 1-2 days Newbie friendliness 58/100
nextcloud/forms#3449 · 10 comments · 2 reactions ·
Maintainers usually reply within 1 day
Similar issues
-
Design only Leadership Survey SLFS
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
bcgov/digital-journeys#2293 ·
-
Toolkit
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
API Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ProjectSidewalk/SidewalkWebpage#5556 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
jessepollak/home#1454 ·
Maintainers usually reply within 1 day
-
Mend: dependency security vulnerability untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
opensearch-project/OpenSearch-Dashboards#12822 ·
Maintainers usually reply within 1 day