mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
feat: Improve Google Drive file download handling
This commit is contained in:
@@ -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
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user