mirror of
https://github.com/open-webui/open-webui
synced 2025-04-29 18:51:03 +00:00
fix: Properly structure Google Drive file upload data for dispatch
This commit is contained in:
parent
7d31b111cc
commit
eef18d4440
@ -501,7 +501,14 @@
|
|||||||
try {
|
try {
|
||||||
const fileData = await createPicker();
|
const fileData = await createPicker();
|
||||||
if (fileData) {
|
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) {
|
} catch (error) {
|
||||||
console.error('Google Drive Error:', error);
|
console.error('Google Drive Error:', error);
|
||||||
|
Loading…
Reference in New Issue
Block a user