mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
fix: Resolve Google Drive picker API loading and token handling
This commit is contained in:
@@ -501,15 +501,9 @@
|
||||
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,
|
||||
token: await getAuthToken() // Include OAuth token for download
|
||||
}
|
||||
data: fileData // fileData now includes token
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user