nextcloud / nextcloud/ios

.nomedia not respected

Open
#2,864 0 comments 14 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
2.5k
Forks
1k
Avg merge
2d 18h
Merged PRs (30d)
13

Description

If a folder has a .nomedia file, the images in it should not be displayed in the media tab. This is common practice for both Nextcloud's own webinterface and among other gallery apps.

Steps to reproduce
  1. Upload images to Nextcloud to a new folder
  2. Create a .nomedia file in that folder
  3. The files are still visible under the media tab
Expected behaviour

Just like in Nextcloud's webinterface, the images should not be visible in the media tab.

Actual behaviour

The images are not ignored, previews are generated and they are visible in the media tab.

Reasoning or why should it be changed/implemented?

The app should mirror the webinterface. Having the iOS app behave differently here is irritating.

I know this technically duplicates #1474 , but the reasoning in that ticket was wrong. I agree that feature parity to Android apps is not required under iOS. However, in my opinion, mirroring Nextcloud's other products is a valid reason to implement this on iOS as well.

Environment data

iOS version: 16.4.1

Nextcloud iOS app version: 5.2.4.2

Server operating system: Debian 12/alpine container

Web server: nginx

Database: PG 15.6

PHP version: 8.2.17

Nextcloud version: 28.0.4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named in the issue. Start by tracing the iOS media tab's file enumeration and preview generation, then verify that images under a folder containing .nomedia are excluded from the media tab and do not receive previews.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.