Skip to content

PWA on Android crashes when attaching video/audio files via file picker (JPEG/PDF work fine) #3521

Open

Description

@aleksandrmukhin74

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

  1. Open a form with file upload in the PWA
  2. Tap upload and select a video file (.mp4)
  3. 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).

Image

Activity

  1. added
    bugSomething isn't working
    0. Needs triagePending approval or rejection. This issue is pending approval.
    on Jul 19, 2026
  2. Chartman123 commented on Jul 19, 2026

    @Chartman123
    Collaborator

    Then this might be fixed by implementing #3449

  3. Chartman123 commented on Jul 22, 2026

    @Chartman123
    Collaborator

    @aleksandrmukhin74 as there is an existing workaround (-> open it directly in the mobile browser and don't use the PWA), we probably won't put too much effort into fixing this.

  4. added this to the Maybe someday milestone on Jul 22, 2026
  5. added
    1. to developAccepted and waiting to be taken care of
    and removed
    0. Needs triagePending approval or rejection. This issue is pending approval.
    on Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. to developAccepted and waiting to be taken care ofbugSomething isn't working

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions