From ac1a07d91c1fd1d7769807e1e8b1c2bce974883c Mon Sep 17 00:00:00 2001 From: Roy Date: Fri, 28 Nov 2025 11:13:11 +0800 Subject: [PATCH] fix: correct external url check condition in readFiles (#6003) --- packages/service/core/workflow/dispatch/tools/readFiles.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/service/core/workflow/dispatch/tools/readFiles.ts b/packages/service/core/workflow/dispatch/tools/readFiles.ts index f732dc66e..f7dd497e4 100644 --- a/packages/service/core/workflow/dispatch/tools/readFiles.ts +++ b/packages/service/core/workflow/dispatch/tools/readFiles.ts @@ -199,7 +199,7 @@ export const getFileContentFromLinks = async ({ const buffer = Buffer.from(response.data, 'binary'); const urlObj = new URL(url, 'http://localhost:3000'); - const isChatExternalUrl = urlObj.pathname.startsWith( + const isChatExternalUrl = !urlObj.pathname.startsWith( `/${S3Buckets.private}/${S3Sources.chat}/` );