mirror of
https://github.com/labring/FastGPT.git
synced 2026-01-20 06:06:45 +08:00
fix: correct external url check condition in readFiles (#6003)
This commit is contained in:
@@ -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}/`
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user