Shared files "file can't be downloaded securely" error only on Android devices

  • Nextcloud Server version:
    • 30.0.5
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 20.04.6
  • Web server and version (e.g, Apache 2.4.25):
    • 2.4.62
  • PHP version (e.g, 8.3):
    • 8.1.30
  • Is this the first time you’ve seen this error?
    • Yes
  • When did this problem seem to first start?
    • Since I was on leave late December last year
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • VPS
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

The issue:

Having issues downloading shared files, just only on Android devices. At face value it looks like the file refuses to download altogether, but when the link is opened in a new tab it throws a “file can’t be downloaded securely” error where you can force it to download.

No errors in Nextcloud’s logs, and the only thing I can pertain from the apache access logs is that all other devices get a 200 HTTP response code and Android a 206.

I.e. Android

[30/Jan/2025:12:33:05 +1100] "GET /factsheets/fs10.pdf HTTP/1.1" 206 693 "-" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Mobile Safari/537.36"

&

Other devices

 [30/Jan/2025:12:34:41 +1100] "GET /factsheets/fs03.pdf HTTP/1.1" 200 181125 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36"

Thanks in advance.