Jpg upload public filedrop error NotPermittedException during MetadataUpdate job

Nextcloud version: 31.0.8
PHP version: 8.2.20
Database: MySQL 8.0.37
OS: Ubuntu 24.04
Webserver: Apache

:memo: Summary of the Issue

I want to receive JPGs via a File Request Link (anonymous shared folder with “Upload only (File drop, no download)” permission).
The JPGs arrive successfully and are visible in the target folder, but the exception in subject is written to the server log:

Warning no app in context
NotPermittedException
issue while running MetadataUpdate

Additionally:

On Android clients uploads, JPGs fail to save locally to the gallery after upload.

Videos upload and save fine as expected, but JPGs do not remain accessible in the gallery.

:high_voltage: Expected Behavior

JPGs uploaded via File Request should be accepted without triggering exceptions.

Metadata (EXIF, mimetype, previews) should be processed cleanly.

No warnings should appear in the log.

Android client should upload JPGs without removing them from the local gallery (same behavior as videos).

:lady_beetle: Actual Behavior

The JPG uploads are stored correctly on the server and appear in the folder.

However, nextcloud.log contains:

Warning no app in context
NotPermittedException
issue while running MetadataUpdate

Error occurs consistently on each JPG upload.

On Android, JPG files vanish from the local gallery after upload (not retained).

Videos work fine — they upload and remain in the local gallery as expected.

:repeat_button: Steps to Reproduce

Create an upload-only folder.

Enable File Request → set to Upload only (File drop, no download).

Share the link anonymously.

From Android device:

Upload a .jpg photo → file appears in server folder, but disappears from phone gallery and error logged.

Upload a .mp4 video → file appears in server folder and remains available in phone gallery.

Issue persists with fresh uploads from Android client.

:clipboard: Environment

Nextcloud: 31.0.8

OS: Ubuntu 24.04

Webserver: Apache

PHP: 8.2.20

Database: MySQL 8.0.37

Apps enabled: files, photos

Clients: Nextcloud Android app (latest from Play Store) not signed in.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.