Auto-Uploaded Photos Not Visible in Files App (Browser)

I have a smartphone with the Nextcloud app installed and Auto upload configured (for file backups). Earlier today, I took some photos and set the phone aside until the app was done uploading the photos.

When I visited the Nextcloud web UI later, the photos appeared in Recommended Files (on the Dashboard) and Recent (in the Files app). I could also preview the photos from there. However, I could not directly navigate to or open them from Files. The containing folders did say that they were modified recently though.

When checking the Nextcloud app, from the smartphone that took/uploaded the photos, the photos were present. When checking the Nextcloud app from a tablet (different mobile device), I could find the photos as well. When checking a different computer (via the web UI), I encountered the same issue – I could only see/preview the photos from the Dashboard.

I then checked the host filesystem, to make sure the photos were present on the server. The photos are in the expected folder, and can be previewed from the host. I also tried running

sudo docker exec -u www-data -it nextcloud php occ files:scan --all -v

to no avail. The photos are 20-30MB each, so they are a bit large. How should I go about getting them to appear in the Files app?

System Details

  • Host OS: Artix OpenRC (6.10.2-artix1-1)
  • Installation Method: Docker + Compose
  • Database: MariaDB 10.6.18 (separate host)
  • Nextcloud Version: 29.0.2

If you need more info from me, please let me know. I will do what I can to retrieve it.

EDIT: After digging around a bit, I’ve found that it’s only affected files backed up from my phone’s DCIM folder (photos and videos). No other files affected.

Since I have only encountered this issue with Auto-uploaded files (at least, thus far), I decided to check if the issue impacted both of my mobile devices.

Devices:

  • Google/ASUS Nexus 7 (2013) LTE
  • ASUS Zenfone 8 Flip (2021)

The OP was created because of the Zenfone 8, and the issue is still present. However, the issue does not appear to affect photos uploaded from the Nexus 7. It also does not affect filed uploaded through the web UI. I’m starting to wonder if my camera settings (on the Zenfone 8) are to blame…

I’ve upgraded to Nextcloud 29.0.4, and the issue is still present. Only affects Auto-uploads made from the Zenfone 8 Flip.

After changing settings on the Zenfone 8 (on multiple occasions), I still can’t tell what’s causing this. The files are there. But they don’t show up in the web UI in the Files app. Strange…

I tried running the following commands, back-to-back:

sudo docker exec -u www-data -it nextcloud php occ files:scan --all
sudo docker exec -u www-data -it nextcloud php occ files:scan-app-data
sudo docker exec -u www-data -it nextcloud php occ groupfolders:scan

and then restarting Nextcloud, to see if I would be able to resolve the issue. To no avail, sadly.

Out of (currently) 63 files in the affected folder, only 23 are visible in the web UI. When selecting the top-most checkbox, it allows me to select all 63 files – even though I can’t see all 63 items.

I haven’t been able to (easily) spot any new occurrences of this issue, but that’s because I haven’t had the time to check. Will look this weekend…