mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 21:05:19 +00:00
fix: Properly structure Google Drive file upload data for dispatch
This commit is contained in:
parent
7d31b111cc
commit
eef18d4440
1 changed files with 8 additions and 1 deletions
|
|
@ -501,7 +501,14 @@
|
|||
try {
|
||||
const fileData = await createPicker();
|
||||
if (fileData) {
|
||||
dispatch('upload', { type: 'google-drive', data: fileData });
|
||||
dispatch('upload', {
|
||||
type: 'google-drive',
|
||||
data: {
|
||||
name: fileData.name,
|
||||
url: fileData.url,
|
||||
id: fileData.id
|
||||
}
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Google Drive Error:', error);
|
||||
|
|
|
|||
Loading…
Reference in a new issue