From bf04cd7f83c3edbe987aa8f0b95d0d629c2726ce Mon Sep 17 00:00:00 2001 From: Atef Bellaaj Date: Sun, 12 Apr 2026 22:12:20 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix:=20legacy=20file=20upload=20?= =?UTF-8?q?UX=20checks=20in=20processFileURL=20and=20processAgentFileUploa?= =?UTF-8?q?d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/server/services/Files/process.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/api/server/services/Files/process.js b/api/server/services/Files/process.js index ab639dbd15..39fe9be8a0 100644 --- a/api/server/services/Files/process.js +++ b/api/server/services/Files/process.js @@ -439,8 +439,7 @@ const processFileURL = async ({ }; const resolveDefaultUploadLLMDeliveryPath = ({ file, endpointConfig, fileConfig }) => { - const isLegacyFileUploadUX = - endpointConfig?.legacyFileUploadUX === true || fileConfig?.legacyFileUploadUX === true; + const isLegacyFileUploadUX = endpointConfig?.legacyFileUploadUX === true; if (isLegacyFileUploadUX) { return 'provider'; } @@ -712,7 +711,7 @@ const processAgentFileUpload = async ({ req, res, metadata }) => { const endpointConfig = getEndpointFileConfig({ fileConfig, endpoint }); if (agent_id && !tool_resource && !messageAttachment) { - if (endpointConfig?.legacyFileUploadUX === true || fileConfig?.legacyFileUploadUX === true) { + if (endpointConfig?.legacyFileUploadUX === true) { throw new Error('No tool resource provided for agent file upload'); } }