Unable to open pictures in Nextcloud, it is just just downloading

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Nextcloud Hub 10 (31.0.0)
  • Operating system and version (e.g., Ubuntu 24.04):
    • Unraid Version: 6.12.3 \ Linux 6.1.38-Unraid x86_64
  • Web server and version (e.g, Apache 2.4.25):
    • can't finf
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • haproxy net 0.63_2 on pfSense 2.7.2-RELEASE
  • PHP version (e.g, 8.3):
    • can't find
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • Don't know, lett then 6months I guess
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Linuxserver Docker image (linuxserver/nextcloud)
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

Can’t open pictures without downloading for a long time.
Upgraded to the newest version of NC and it is the same.
Tried to find a setting, but nothing.

While clicking on the picture it is downloading insted of opening in bigger in-browser format like before.

Tested on windows(chrome), ios(safari), android(chrome) ect.

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

root@8d440863db08:/usr/share# occ config:list system
{
    "system": {
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "10.0.24.10:3334",
            "nextcloud.flemmingss.top"
        ],
        "dbtype": "mysql",
        "version": "31.0.0.18",
        "overwrite.cli.url": "https:\/\/nextcloud.flemmingss.top",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "theme": "",
        "default_phone_region": "NO",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "share_folder": "\/Delt med meg",
        "filelocking.enabled": "true",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6381
        },
        "loglevel": 2,
        "maintenance": false,
        "app_install_overwrite": [
            "files_readmemd"
        ],
        "upgrade.disable-web": true
    }
}
root@8d440863db08:/usr/share#
 

Apps

The output of occ app:list (if possible).

root@8d440863db08:/# occ app:list
Enabled:
  - activity: 4.0.0
  - app_api: 5.0.2
  - bruteforcesettings: 4.0.0
  - cloud_federation_api: 1.14.0
  - comments: 1.21.0
  - contactsinteraction: 1.12.0
  - dav: 1.33.0
  - federatedfilesharing: 1.21.0
  - files: 2.3.1
  - files_downloadlimit: 4.0.0
  - files_external: 1.23.0
  - files_pdfviewer: 4.0.0
  - files_readmemd: 3.0.2
  - files_reminders: 1.4.0
  - files_sharing: 1.23.1
  - files_trashbin: 1.21.0
  - files_versions: 1.24.0
  - groupfolders: 19.0.3
  - impersonate: 2.0.0
  - logreader: 4.0.0
  - lookup_server_connector: 1.19.0
  - notifications: 4.0.0
  - oauth2: 1.19.1
  - privacy: 3.0.0
  - profile: 1.0.0
  - provisioning_api: 1.21.0
  - related_resources: 2.0.0
  - serverinfo: 3.0.0
  - settings: 1.14.0
  - sharebymail: 1.21.0
  - support: 3.0.0
  - systemtags: 1.21.1
  - text: 5.0.0
  - theming: 2.6.1
  - twofactor_backupcodes: 1.20.0
  - updatenotification: 1.21.0
  - user_status: 1.11.0
  - viewer: 4.0.0
  - webhook_listeners: 1.2.0
  - workflowengine: 2.13.0
Disabled:
  - admin_audit: 1.21.0
  - circles: 31.0.0-dev.0 (installed 27.0.0)
  - dashboard: 7.11.0 (installed 7.4.0)
  - encryption: 2.19.0
  - external: 6.0.1 (installed 6.0.1)
  - federation: 1.21.0 (installed 1.9.0)
  - files_rightclick: 1.6.0 (installed 1.6.0)
  - firstrunwizard: 4.0.0 (installed 2.8.0)
  - login_notes: 1.6.1 (installed 1.6.1)
  - metadata: 0.22.0 (installed 0.22.0)
  - nextcloud_announcements: 3.0.0 (installed 1.8.0)
  - password_policy: 3.0.0 (installed 1.9.1)
  - photos: 4.0.0-dev.1 (installed 4.0.0-dev.1)
  - recommendations: 4.0.0 (installed 0.7.0)
  - survey_client: 3.0.0 (installed 1.7.0)
  - suspicious_login: 9.0.1
  - twofactor_nextcloud_notification: 5.0.0
  - twofactor_totp: 13.0.0-dev.0
  - user_ldap: 1.22.0
  - weather_status: 1.11.0 (installed 1.4.0)
root@8d440863db08:/#

my config:
‘enable_previews’ => true,
‘preview_max_x’ => 1920,
‘preview_max_y’ => 1080,
‘preview_concurrency_all’ => 8,
‘preview_concurrency_new’ => 4,
‘preview_max_filesize_image’ => -1,
‘preview_max_memory’ => 256,
‘enabledPreviewProviders’ =>.
array (
0 => ‘OC\Preview\BMP’,
1 => ‘OC\Preview\GIF’,
2 => ‘OC\Preview\JPEG’,
3 => ‘OC\Preview\Krita’,
4 => ‘OC\Preview\MarkDown’,
5 => ‘OC\Preview\MP3’,
6 => ‘OC\Preview\OpenDocument’,
7 => ‘OC\Preview\PNG’,
8 => ‘OC\Preview\TXT’,
9 => ‘OC\Preview\XBitmap’,
10 => ‘OC\Preview\Font’,
),

Maybe you must activate the app Photos.

devnull I have tested that, it did not work. It was enabled when I got this problem so I tried disable, that is why it is disabled here.

Thanks, but I tested your config, and it did not change the the behavior

Couple suggestions:

  • check your browser inspector as described in the support template (you appear to have deleted that section when posting)
  • disable the files_readmemd app which you appear to have force enabled (which disables compatibility checks); it does not support the last couple versions of Nextcloud Server
  • check your LSIO container startup logs to confirm you don’t have out-of-date configuration files
  1. Found this in errors:
GET https://nextcloud.flemmingss.top/apps/files_downloadlimit/js/files_downloadlimit-main.mjs?v=83f644e5-12 net::ERR_ABORTED 404 (Not Found)Understand this errorAI
421780:44 
            
            
           GET https://nextcloud.flemmingss.top/apps/activity/js/activity-api.mjs?v=83f644e5-12 net::ERR_ABORTED 404 (Not Found)Understand this errorAI
421780:43 
            
            
           GET https://nextcloud.flemmingss.top/apps/text/js/text-init.mjs?v=83f644e5-12 net::ERR_ABORTED 404 (Not Found)Understand this errorAI
421780:66 
            
            
           GET https://nextcloud.flemmingss.top/apps/activity/js/activity-sidebar.mjs?v=83f644e5-12 net::ERR_ABORTED 404 (Not Found)Understand this errorAI
421780:64 
            
            
           GET https://nextcloud.flemmingss.top/apps/text/js/text-files.mjs?v=83f644e5-12 net::ERR_ABORTED 404 (Not Found)Understand this errorAI
421780:45 
            
            
           GET https://nextcloud.flemmingss.top/apps/viewer/js/viewer-init.mjs?v=83f644e5-12 net::ERR_ABORTED 404 (Not Found)Understand this errorAI
421780:63 
            
            
           GET https://nextcloud.flemmingss.top/apps/viewer/js/viewer-main.mjs?v=83f644e5-12 net::ERR_ABORTED 404 (Not Found)Understand this errorAI
421780:65 
            
            
           GET https://nextcloud.flemmingss.top/apps/text/js/text-viewer.mjs?v=83f644e5-12 net::ERR_ABORTED 404 (Not Found)Understand this errorAI
421780:72 
            
            
           GET https://nextcloud.flemmingss.top/apps/notifications/js/notifications-main.mjs?v=83f644e5-12 net::ERR_ABORTED 404 (Not Found)Understand this errorAI
Navigation.vue:118 could not invoke event listener TypeError: Cannot read properties of undefined (reading '$props')
    at De.setPresets (TypeFilter.ts:127:30)
    at De.reset (TypeFilter.ts:123:14)
    at filters.ts:83:24
    at index.mjs:50:9
    at Array.forEach (<anonymous>)
    at o.emit (index.mjs:48:37)
    at i.emit (index.mjs:25:14)
    at c (index.mjs:91:12)
    at o.showView (Navigation.vue:118:13)
    at o.beforeMount (Navigation.vue:95:14)
(anonymous) @ index.mjs:52
emit @ index.mjs:48
emit @ index.mjs:25
c @ index.mjs:91
showView @ Navigation.vue:118
beforeMount @ Navigation.vue:95
cn @ vue.runtime.esm.js:3033
Wn @ vue.runtime.esm.js:4048
e @ vue.runtime.esm.js:3870
Ra.$mount @ vue.runtime.esm.js:8797
init @ vue.runtime.esm.js:4427
(anonymous) @ vue.runtime.esm.js:6591
h @ vue.runtime.esm.js:6545
f @ vue.runtime.esm.js:6664
h @ vue.runtime.esm.js:6568
Ti.nodeOps @ vue.runtime.esm.js:7095
e._update @ vue.runtime.esm.js:3781
a @ vue.runtime.esm.js:3891
e.get @ vue.runtime.esm.js:3462
e @ vue.runtime.esm.js:3452
e @ vue.runtime.esm.js:3908
Ra.$mount @ vue.runtime.esm.js:8797
init @ vue.runtime.esm.js:4427
(anonymous) @ vue.runtime.esm.js:6591
h @ vue.runtime.esm.js:6545
Ti.nodeOps @ vue.runtime.esm.js:7133
e._update @ vue.runtime.esm.js:3781
a @ vue.runtime.esm.js:3891
e.get @ vue.runtime.esm.js:3462
e @ vue.runtime.esm.js:3452
e @ vue.runtime.esm.js:3908
Ra.$mount @ vue.runtime.esm.js:8797
83793 @ main.ts:32
r @ bootstrap:19
(anonymous) @ files-main.js?v=83f644e5-12:1
r.O @ chunk loaded:25
(anonymous) @ files-main.js?v=83f644e5-12:1
(anonymous) @ files-main.js?v=83f644e5-12:1Understand this errorAI
main.js:7 Uncaught TypeError: Cannot read properties of undefined (reading 'registerHandler')
    at main.js:7:12
    at files_pdfviewer-main.js?v=83f644e5-12:1:1069184
    at files_pdfviewer-main.js?v=83f644e5-12:1:1069188
  1. the files_readmemd is disabled
  2. I have these:
┌────────────┬────────────┬────────────────────────────────────────────────────────────────────────┐
│  old date  │  new date  │ path                                                                   │
├────────────┼────────────┼────────────────────────────────────────────────────────────────────────┤
│ 2022-08-20 │ 2024-12-06 │ /config/nginx/ssl.conf                                                 │
│ 2018-08-16 │ 2024-12-17 │ /config/nginx/nginx.conf                                               │
│            │ 2024-07-16 │ /config/nginx/site-confs/default.conf                                  │
└────────────┴────────────┴────────────────────────────────────────────────────────────────────────┘

Do you have *.mjs support enabled for Nextcloud?

UnfortunateIy i only know the config for nginx → mime.types - but i think you don’t have nginx in use?

I deleted my post because i saw “haproxy” in your hardware details.

i saw several posts in nc community ; one of them (maybe not the best…)

The correct path for your mime.types conf in your linux server might be different!

After some research I think HAproxy may not be relevant. That is the reverse proxy for my domain, the Nginx or Apache servers noted here are the webservers.

I also tried to log in to nextcloud with local IP and the issue was the same.
however I cant find the files referd to in the post about Nginx.

I also have some warnings

  • Unable to run check for JavaScript support. Please remedy or confirm manually if your webserver serves .mjs files using the JavaScript MIME type. To allow this check to run you have to make sure that your Web server can connect to itself. Therefore it must be able to resolve and connect to at least one of its trusted_domains or the overwrite.cli.url. This failure may be the result of a server-side DNS mismatch or outbound firewall rule.

  • Your web server is not properly set up to resolve “/ocm-provider/”. This is most likely related to a web server configuration that was not updated to deliver this folder directly. Please compare your configuration against the shipped rewrite rules in “.htaccess” for Apache or the provided one in the documentation for Nginx. On Nginx those are typically the lines starting with “location ~” that need an update. For more details see the documentation :arrow_upper_right:.

  • Your web server is not properly set up to resolve .well-known URLs, failed on: /.well-known/webfinger For more details see the documentation :arrow_upper_right:.

  • 14 errors in the logs since April 22, 2025, 9:19:37 AM

  • Server has no maintenance window start time configured. This means resource intensive daily background jobs will also be executed during your main usage time. We recommend to set it to a time of low usage, so users are less impacted by the load caused from these heavy tasks. For more details see the documentation :arrow_upper_right:.

  • Some headers are not set correctly on your instance - The X-Robots-Tag HTTP header is not set to noindex,nofollow. This is a potential security or privacy risk, as it is recommended to adjust this setting accordingly. - The Strict-Transport-Security HTTP header is not set (should be at least 15552000 seconds). For enhanced security, it is recommended to enable HSTS. For more details see the documentation :arrow_upper_right:.

  • Detected some missing optional indices. Occasionally new indices are added (by Nextcloud or installed applications) to improve database performance. Adding indices can sometimes take awhile and temporarily hurt performance so this is not done automatically during upgrades. Once the indices are added, queries to those tables should be faster. Use the command occ db:add-missing-indices to add them. Missing indices: “dav_shares_resourceid_type” in table “dav_shares”, “dav_shares_resourceid_access” in table “dav_shares”, “oc_npushhash_di” in table “notifications_pushhash”, “fs_name_hash” in table “filecache”, “schedulobj_lastmodified_idx” in table “schedulingobjects”, “systag_by_objectid” in table “systemtag_object_mapping”, “systag_objecttype” in table “systemtag_object_mapping” For more details see the documentation :arrow_upper_right:.

  • Incorrect row format found in your database. ROW_FORMAT=Dynamic offers the best database performances for Nextcloud. Please update row format on the following list: oc_accounts, oc_accounts_data, oc_activity, oc_activity_mq, oc_addressbookchanges, oc_addressbooks, oc_appconfig, oc_authorized_groups, oc_authtoken, oc_bruteforce_attempts, oc_calendar_invitations, oc_calendar_reminders, oc_calendar_resources, oc_calendar_resources_md, oc_calendar_rooms, oc_calendar_rooms_md, oc_calendarchanges, oc_calendarobjects, oc_calendarobjects_props, oc_calendars, oc_calendarsubscriptions, oc_cards, oc_cards_properties, oc_circles_circle, oc_circles_event, oc_circles_member, oc_circles_membership, oc_circles_mount, oc_circles_mountpoint, oc_circles_remote, oc_circles_share_lock, oc_circles_token, oc_collres_accesscache, oc_collres_collections, oc_collres_resources, oc_comments, oc_comments_read_markers, oc_dav_cal_proxy, oc_dav_shares, oc_direct_edit, oc_directlink, oc_federated_reshares, oc_file_locks, oc_filecache, oc_filecache_extended, oc_files_trash, oc_flow_checks, oc_flow_operations, oc_flow_operations_scope, oc_group_admin, oc_group_folders, oc_group_folders_acl, oc_group_folders_groups, oc_group_folders_manage, oc_group_folders_trash, oc_group_user, oc_groups, oc_jobs, oc_known_users, oc_login_flow_v2, oc_login_notes, oc_migrations, oc_mimetypes, oc_mounts, oc_notes_meta, oc_notifications, oc_notifications_pushhash, oc_notifications_settings, oc_oauth2_access_tokens, oc_oauth2_clients, oc_preferences, oc_privacy_admins, oc_profile_config, oc_properties, oc_ratelimit_entries, oc_recent_contact, oc_schedulingobjects, oc_share, oc_share_external, oc_storages, oc_storages_credentials, oc_systemtag, oc_systemtag_group, oc_systemtag_object_mapping, oc_text_documents, oc_text_sessions, oc_text_steps, oc_trusted_servers, oc_twofactor_backupcodes, oc_twofactor_providers, oc_user_status, oc_user_transfer_owner, oc_users, oc_vcategory, oc_vcategory_to_object, oc_webauthn, oc_whats_new. For more details see the documentation :arrow_upper_right:.

  • Could not check for otf loading support. Please check manually if your webserver serves .otf files. To allow this check to run you have to make sure that your Web server can connect to itself. Therefore it must be able to resolve and connect to at least one of its trusted_domains or the overwrite.cli.url. This failure may be the result of a server-side DNS mismatch or outbound firewall rule. For more details see the documentation :arrow_upper_right:.

  • You have not set or verified your email server configuration, yet. Please head over to the “Basic settings” in order to set them. Afterwards, use the “Send email” button below the form to verify your settings. For more details see the documentation :arrow_upper_right:.