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:
@@ -309,7 +309,7 @@
|
|||||||
const originalName = idx[stem];
|
const originalName = idx[stem];
|
||||||
|
|
||||||
if (originalName) {
|
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) {
|
if (currentIndex === index) {
|
||||||
const img = new Image();
|
const img = new Image();
|
||||||
img.onload = () => {
|
img.onload = () => {
|
||||||
|
|||||||
@@ -308,7 +308,7 @@
|
|||||||
const originalName = idx[stem];
|
const originalName = idx[stem];
|
||||||
|
|
||||||
if (originalName) {
|
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) {
|
if (currentIndex === index) {
|
||||||
const img = new Image();
|
const img = new Image();
|
||||||
img.onload = () => {
|
img.onload = () => {
|
||||||
|
|||||||
@@ -313,7 +313,7 @@
|
|||||||
const originalName = idx[stem];
|
const originalName = idx[stem];
|
||||||
|
|
||||||
if (originalName) {
|
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) {
|
if (currentIndex === index) {
|
||||||
const img = new Image();
|
const img = new Image();
|
||||||
img.onload = () => {
|
img.onload = () => {
|
||||||
|
|||||||
@@ -315,7 +315,7 @@
|
|||||||
const originalName = idx[stem];
|
const originalName = idx[stem];
|
||||||
|
|
||||||
if (originalName) {
|
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
|
// Only update if still on the same image
|
||||||
if (currentIndex === index) {
|
if (currentIndex === index) {
|
||||||
const img = new Image();
|
const img = new Image();
|
||||||
|
|||||||
Reference in New Issue
Block a user