Browse Source

fix: Adjust Google Drive file upload headers in processWeb call

Taylor Wilsdon (aider) 4 months ago
parent
commit
7d55f9bc2e
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/lib/components/chat/Chat.svelte

+ 4 - 1
src/lib/components/chat/Chat.svelte

@@ -362,7 +362,10 @@
 
 
 		try {
 		try {
 			files = [...files, fileItem];
 			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) {
 			if (res) {
 				fileItem.status = 'uploaded';
 				fileItem.status = 'uploaded';