From d73455eda22243a75b784ea22b44b2ca4dc0b7fa Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Sat, 29 Aug 2026 17:13:26 +0300 Subject: [PATCH] Restores the authenticated thumbnail proxy call in the file browser dialog --- .../wwwroot/js/file-system-browser-dialog.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Lumina.Presentation.Web/wwwroot/js/file-system-browser-dialog.js b/src/Lumina.Presentation.Web/wwwroot/js/file-system-browser-dialog.js index 15cda276..5f24564e 100644 --- a/src/Lumina.Presentation.Web/wwwroot/js/file-system-browser-dialog.js +++ b/src/Lumina.Presentation.Web/wwwroot/js/file-system-browser-dialog.js @@ -75,7 +75,6 @@ let explorerItemTemplate = null; let pathSegmentTemplate = null; - let serverBasePath; let clientBasePath; let _path; let pathSeparator = '/'; @@ -113,7 +112,6 @@ * @param {any} config The configuration of the file system browser. */ async function initFileSystemBrowser(config) { - serverBasePath = config.serverBasePath; clientBasePath = config.clientBasePath; iconBaseUrl = config.iconBaseUrl || ''; fileIconsUrl = config.fileIconsUrl || ''; @@ -1470,8 +1468,8 @@ * @throws {Error} - Throws an error if the API call fails. */ async function getThumbnailApiCall(path, quality) { - // fetch the thumbnail for the given item from the server - const response = await fetch(`${serverBasePath}thumbnails/get-thumbnail?path=` + encodeURIComponent(path) + '&quality=' + quality, { + // fetch the thumbnail for the given item from the server, through the Web application, which proxies the request with the authentication of the current user + const response = await fetch(`${clientBasePath}thumbnails/api-get-thumbnail?path=` + encodeURIComponent(path) + '&quality=' + quality, { signal: abortController.signal // use the abort signal }); if (!response.ok)