diff --git a/main.py b/main.py index e124f62..fc990ea 100644 --- a/main.py +++ b/main.py @@ -871,6 +871,7 @@ def _elf_entry(proto, host, port, share, path, name, is_dir, size=0, mime=None): "dirs": 1 if is_dir else 0, "read": 1, "write": 1, "locked": 0, "hidden": 0, "ts": 0, + "tmb": False, # disable thumbnail generation — avoids loading full-size files "volumeid": f"{proto}_{host}_{port}_{share}_", } if phash: diff --git a/templates/index.html b/templates/index.html index 871206f..fa38996 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1019,6 +1019,13 @@ function elfShowCreds(container, taskId, elfState) { rememberLastDir: false, soundPath: '/static/elfinder/sounds/', lang: 'en', + // Disable thumbnail loading — we don't resize images server-side + loadTmbs: 0, + commandsOptions: { + quicklook: { autoplay: false }, + }, + // Disable commands we can't support + commands: ['*'], uiOptions: { toolbar: [['back','forward','up'],['mkdir','upload'],['copy','cut','paste'],['rm'],['info'],['view','sort']], },