Failed to add image to album

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 25.0.3
Operating system: Linux 5.4.0-137-generic #154-Ubuntu x86_64
Webserver: nginx/1.18.0 (fpm-fcgi)
Database: mysql 10.5.18
PHP version: 8.0.27

The issue you are facing:

When I try to add an image to an album I get the following error

Failed to add xxxx.jpg to album XXXX.

Is this the first time you’ve seen this error? (Y/N): N

Steps to replicate it:

  1. Go to an existing album or create a new one
  2. Click Add Photo
  3. Select Photo and click Add

The output of your Nextcloud log in Admin > Logging:

 I use a hosted version and unfortunately I can't see the logs, will check with the provider why this is

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

    "skeletondirectory": "\/var\/www\/html\/themes\/hetzner\/skeleton",
    "simpleSignUpLink.shown": false,
    "memcache.local": "\\OC\\Memcache\\APCu",
    "appstoreurl": "https:\/\/",
    "apps_paths": [
            "path": "\/var\/www\/html\/apps",
            "url": "\/apps",
            "writable": false
            "path": "\/var\/www\/html\/custom_apps",
            "url": "\/custom_apps",
            "writable": true
    "files_external_allow_create_new_local": false,
    "loglevel": 2,
    "log_type": "syslog",
    "updatechecker": false,
    "updater.server.url": "https:\/\/",
    "": "stable",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "version": "",
    "overwrite.cli.url": "https:\/\/",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "default_language": "en",
    "default_locale": "en",
    "default_phone_region": "US",
    "mail_smtpmode": "smtp",
    "mail_smtpauthtype": "LOGIN",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "syslog_tag": "nextcloud-nx31669",
    "upgrade.disable-web": true,
    "theme": "hetzner",
    "templatedirectory": "\/var\/www\/html\/core\/skeleton\/Templates\/",
    "enabledPreviewProviders": [
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "port": "6379",
        "timeout": "1.5",
        "dbindex": "0"
    "filelocking.enabled": true,
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "memcache.distributed": "\\OC\\Memcache\\Redis",
    "twofactor_enforced": "false",
    "twofactor_enforced_groups": [
    "twofactor_enforced_excluded_groups": [],
    "maintenance": false,
    "trusted_domains": [
    "bulkupload.enabled": false,
    "app_install_overwrite": [

The output of your Apache/nginx/system log in /var/log/____:

N/A as I use a hosted version of NC

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.


Seems I had both E2E and server side encryption enabled

"Cannot copy or move files from non-encrypted folders to end to end encrypted
folders or vice versa."

Apparently not supported: GitHub - nextcloud/end_to_end_encryption: Server API to support End-to-End Encryption

I asked the provider to remove server aide encryption.

got the same problem and what i saw this the user which have problem have no photo directory created

The user was created by admin and i tested to create one other user and he as the same thing no dossier photos under Photos

look like a bug ?