Android app fails to export/download large files while browser and desktop client succeed

Steps to reproduce

  1. Open the Nextcloud Android app.
  2. Navigate to a large audio file stored in Nextcloud.
  3. Try to export/download it to the Android device.

Example file:

  • dwojka_Wieczór pÅ‚ytowy_2026-05-31_22-00-00.aac
  • size: 434400337 bytes

Expected behavior

The file should download/export completely to the Android device.

Actual behavior

The app reports that export/download failed.

Logs

Environment:

  • Nextcloud server: 33.0.3.2
  • Android app user agent seen in logs: Nextcloud-android/33.1.1
  • Server setup:
    • Nextcloud in Docker
    • Apache reverse proxy
    • file served from external local storage mount

Observed behavior:

  • The same file downloads successfully:
    • in a browser on the same Android phone
    • in the Windows Nextcloud desktop client
  • The server returns 200 OK for the Android app request, but the transfer ends early.
  • Forcing HTTP/1.1 instead of HTTP/2 did not fix the issue.

Relevant server log entries:

Android app, partial transfer:

  • 2026-06-01 12:26:28 +0200

    • GET /nextcloud/remote.php/dav/files/przemek/radio/Wiecz%C3%B3r%20p%C5%82ytowy/dwojka_Wiecz%C3%B3r%20p%C5%82ytowy_2026-05-31_22-00-00.aac
    • HTTP/2.0
    • 200
    • 293756928 bytes
  • 2026-06-01 14:04:22 +0200

    • same file
    • HTTP/1.1
    • 200
    • 343064576 bytes

Windows desktop client, full transfer:

  • 2026-06-01 13:05:33 +0200
    • same file
    • HTTP/1.1
    • 200
    • 434400337 bytes

Other large files also ended early in the Android app around ~305-345 MB, while smaller files succeeded.

Examples:

  • Nowa Tradycja/...2026-05-22...aac → 329559198 bytes
  • Nowa Tradycja/...2026-05-23...aac → 326500352 bytes
  • Nowa Tradycja/...2026-05-24...aac → 333316096 bytes
  • Wieczór pÅ‚ytowy/...2026-05-24...aac → repeated partial transfers around 305-345 MB

Smaller files that succeeded from Android:

  • about 58 MB
  • about 77-79 MB
  • about 113 MB
  • about 169 MB
  • about 290 MB

Additional checks already done:

  • file exists and is readable on the server
  • file is present in Nextcloud file cache
  • Android SD free space increased from about 3 GB to about 10 GB
  • app excluded from battery optimization
  • app granted broad file access

Conclusion:

  • This does not appear to be a server-side storage, WebDAV, proxy, timeout, or file integrity issue.
  • It looks like a client-side issue in the Android app’s large file download/export flow.