nextcloud / android

📱 Nextcloud Android app
https://play.google.com/store/apps/details?id=com.nextcloud.client
GNU General Public License v2.0
4.17k stars 1.75k forks source link

Media does not respect .nomedia file recursively #12322

Open wuesti opened 9 months ago

wuesti commented 9 months ago

⚠️ Before posting ⚠️

Steps to reproduce

  1. Create folder
  2. Place a file .nomedia
  3. Create subfolder
  4. Copy different pictures into both folders
  5. Use the media screen
  6. The pictures of the subfolder are shown

Expected behaviour

The pictures of the subfolder should not be shown. This behaviour of nextcloud is shown in Webbrowser.

Actual behaviour

Pictures placed in subfolder are shown even with .nomedia file in parent folder

Android version

8.0

Device brand and model

Samsung Tab a

Stock or custom OS?

Stock

Nextcloud android app version

3.26.0

Nextcloud server version

27.1.4

Using a reverse proxy?

No

Android logs

No response

Server error logs

No response

Additional information

No response

joshtrichards commented 9 months ago

Are you referring to creating a .nomedia on your device's filesystem or in your Nextcloud Server hosted folder structure?

wuesti commented 9 months ago

On nextcloud. The folders are not in Android.

SKB-CGN commented 8 months ago

I have the same problem. NC App ignores the servers nomedia file, when going to the Media section.

jochen-unielektro commented 7 months ago

Tested this on a Pixel 4A, Android 13, Nextcloud Android App Version 3.27.0 In "Media" pictures are shown even if their folder itself contains a ".nomedia" File. Additionally, when swiping through the pictures after clicking one, pictures come up that aren't shown in the overview but are located outside the media folder (selected in the triple-point menu).

douglasparker commented 6 months ago

This is a major issue that I'd like to see addressed. Similar problems with Nextcloud on iOS: nextcloud/ios/issues/1474