From 696bc9c2a74ffbee3d9d53e32048e278067296b3 Mon Sep 17 00:00:00 2001 From: JL Kruger Date: Fri, 27 Mar 2026 20:22:45 +0200 Subject: [PATCH] Fix FileBrowser download URL pattern in image galleries /api/public/dl/{token}?files=/{name} returns empty ZIP. Correct pattern is /api/public/dl/{token}/{name} (path-style). Co-Authored-By: Claude Sonnet 4.6 --- Images/exopraxist.html | 2 +- Images/myster-wizzard.html | 2 +- Images/nomad-soul.html | 2 +- Images/wayback.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Images/exopraxist.html b/Images/exopraxist.html index 084e2d9..c63ab15 100644 --- a/Images/exopraxist.html +++ b/Images/exopraxist.html @@ -309,7 +309,7 @@ const originalName = idx[stem]; if (originalName) { - const fullResUrl = `https://files.exopraxist.org/api/public/dl/${COLLECTION_TOKEN}?files=/${encodeURIComponent(originalName)}`; + const fullResUrl = `https://files.exopraxist.org/api/public/dl/${COLLECTION_TOKEN}/${encodeURIComponent(originalName)}`; if (currentIndex === index) { const img = new Image(); img.onload = () => { diff --git a/Images/myster-wizzard.html b/Images/myster-wizzard.html index dbca5fc..60d53e3 100644 --- a/Images/myster-wizzard.html +++ b/Images/myster-wizzard.html @@ -308,7 +308,7 @@ const originalName = idx[stem]; if (originalName) { - const fullResUrl = `https://files.exopraxist.org/api/public/dl/${COLLECTION_TOKEN}?files=/${encodeURIComponent(originalName)}`; + const fullResUrl = `https://files.exopraxist.org/api/public/dl/${COLLECTION_TOKEN}/${encodeURIComponent(originalName)}`; if (currentIndex === index) { const img = new Image(); img.onload = () => { diff --git a/Images/nomad-soul.html b/Images/nomad-soul.html index dac70cb..4ca0048 100644 --- a/Images/nomad-soul.html +++ b/Images/nomad-soul.html @@ -313,7 +313,7 @@ const originalName = idx[stem]; if (originalName) { - const fullResUrl = `https://files.exopraxist.org/api/public/dl/${COLLECTION_TOKEN}?files=/${encodeURIComponent(originalName)}`; + const fullResUrl = `https://files.exopraxist.org/api/public/dl/${COLLECTION_TOKEN}/${encodeURIComponent(originalName)}`; if (currentIndex === index) { const img = new Image(); img.onload = () => { diff --git a/Images/wayback.html b/Images/wayback.html index 7830ed5..0f7497b 100644 --- a/Images/wayback.html +++ b/Images/wayback.html @@ -315,7 +315,7 @@ const originalName = idx[stem]; if (originalName) { - const fullResUrl = `https://files.exopraxist.org/api/public/dl/${COLLECTION_TOKEN}?files=/${encodeURIComponent(originalName)}`; + const fullResUrl = `https://files.exopraxist.org/api/public/dl/${COLLECTION_TOKEN}/${encodeURIComponent(originalName)}`; // Only update if still on the same image if (currentIndex === index) { const img = new Image();