diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 431fd30b6..e753a999b 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -362,7 +362,10 @@ try { files = [...files, fileItem]; - const res = await processWeb(localStorage.token, '', fileData.url, fileData.headers); + // Pass both URL and headers to processWeb + const res = await processWeb(localStorage.token, '', fileData.url, { + headers: fileData.headers + }); if (res) { fileItem.status = 'uploaded';