android icon indicating copy to clipboard operation
android copied to clipboard

Media does not respect .nomedia file recursivly

Open wuesti opened this issue 1 year ago • 4 comments

⚠️ Before posting ⚠️

  • [X] This is a bug, not a question or an enhancement.
  • [X] I've searched for similar issues and didn't find a duplicate.
  • [X] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • [X] I agree to follow Nextcloud's Code of Conduct.

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

wuesti avatar Dec 22 '23 10:12 wuesti

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

joshtrichards avatar Dec 22 '23 13:12 joshtrichards

On nextcloud. The folders are not in Android.

wuesti avatar Dec 22 '23 13:12 wuesti

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

SKB-CGN avatar Dec 26 '23 07:12 SKB-CGN

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).

jochen-unielektro avatar Jan 31 '24 16:01 jochen-unielektro

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

douglasparker avatar Mar 19 '24 02:03 douglasparker