ios icon indicating copy to clipboard operation
ios copied to clipboard

iOS App β€œMedia” tab only shows 1 photo after reorganizing files into subfolders

Open ccod85 opened this issue 2 months ago β€’ 3 comments

Environment β€’ Server: Nextcloud (Docker on Raspberry Pi 3, with external USB HDD at /mnt/ncdata) β€’ Nextcloud version: e.g. 31.0.9 β€’ iOS App version: e.g. 7.1.7 β€’ iOS version: e.g. iOS 26.0.1 β€’ Database: MariaDB (Docker)

Steps to Reproduce 1. Upload ~12,000 photos/videos into a single folder (Photos/mobile) β†’ At this point everything works in both web UI and iOS Media tab. 2. Reorganize into year/month subfolders (Photos/mobile/2023/01, 2023/02, …). 3. Run reindex commands: occ files:scan --all occ files:scan-app-data occ maintenance:mimetype:update-db occ maintenance:repair --include-expensive occ db:add-missing-indices

4.	After reindex:
	β€’	Web Files tab βœ… All files visible
	β€’	Web Photos app βœ… All files visible
	β€’	iOS Files tab βœ… All files visible
	β€’	iOS Media tab ❌ Only 1 single (oldest) photo displayed

Expected Behavior β€’ Media tab on iOS should display all photos/videos, same as web Photos app.

Actual Behavior β€’ Media tab only shows one (the oldest) photo. β€’ Files tab and web UI both show the correct number (~12,000). β€’ Issue appeared only after reorganizing files into subfolders.

Additional Information β€’ Clearing cache, logging out/in, uninstalling/reinstalling the iOS app does not help. β€’ Appdata caches (appdata_xxxxx/photos, thumbnails) deleted and rebuilt β†’ no change. β€’ Background jobs (cron.php) running every 5 minutes. β€’ Looks like a Photos API indexing/pagination bug triggered by large photo libraries with many subfolders.

Related Issues β€’ #2896 – Media tab photos progressively disappearing β€’ #3301 – Media tab only shows certain folders β€’ #3598 – Media tab broken with large photo libraries

ccod85 avatar Oct 07 '25 10:10 ccod85

media tab is completely broken in recent ios releases, switched back to version 7.0.7. the newer versions completely messed up my database, had to even delete fotos cache in sql library and do a full rescan. including tagging and recognizing faces etc. it took me several days, i would stay away from the later ios versions.

bendschs avatar Oct 08 '25 13:10 bendschs

I have a similar issue β€’ Web Files tab βœ… All files visible β€’ Web Photos app ❌ The latest uploads are not displayed β€’ iOS Files tab βœ… All files visible β€’ iOS Media tab ❌ The latest uploads are not displayed

I wonder if it might be related to time zone handling

azafree avatar Oct 31 '25 23:10 azafree

please post the Log of Nextcloud iOS, the media performs a search with a timeout of 180 seconds, probably Raspberry Pi 3 is insufficient to satisfy the request.

marinofaggiana avatar Nov 14 '25 09:11 marinofaggiana