Explorar o código

fix: Adjust Google Drive file upload headers in processWeb call

Taylor Wilsdon (aider) hai 4 meses
pai
achega
7d55f9bc2e
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      src/lib/components/chat/Chat.svelte

+ 4 - 1
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';