feat: Improve Google Drive file download handling

This commit is contained in:
Taylor Wilsdon (aider) committed 2024-12-15 18:42:26 -05:00
1 parent eef18d4440
commit 64c8bbc16a
2 files changed
+6 -2

No files matched your search

+3 -1
View File
@@ -501,12 +501,14 @@
try {
const fileData = await createPicker();
if (fileData) {
// Pass the OAuth token along with the file data
dispatch('upload', {
type: 'google-drive',
data: {
name: fileData.name,
url: fileData.url,
id: fileData.id
id: fileData.id,
token: await getAuthToken() // Include OAuth token for download
}
});
}