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 <noreply@anthropic.com>
This commit is contained in:
2026-03-27 20:22:45 +02:00
parent e57d2b0a72
commit 696bc9c2a7
4 changed files with 4 additions and 4 deletions

View File

@@ -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 = () => {