fix: Update Google Drive file upload to use authorization headers

This commit is contained in:
Taylor Wilsdon (aider) committed 2024-12-15 18:52:24 -05:00
1 parent 4adcd2b64a
commit 7dace30587
2 files changed
+7 -5

No files matched your search

+2 -1
View File
@@ -356,12 +356,13 @@
collection_name: '',
status: 'uploading',
url: fileData.url,
headers: fileData.headers,
error: ''
};
try {
files = [...files, fileItem];
const res = await processWeb(localStorage.token, '', fileData.url);
const res = await processWeb(localStorage.token, '', fileData.url, fileData.headers);
if (res) {
fileItem.status = 'uploaded';