mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
feat: Add comprehensive logging to Google Drive picker integration
This commit is contained in:
@@ -522,12 +522,17 @@
|
||||
}}
|
||||
uploadGoogleDriveHandler={async () => {
|
||||
try {
|
||||
console.log('Starting Google Drive file selection...');
|
||||
const fileData = await createPicker();
|
||||
console.log('Picker returned file data:', fileData);
|
||||
if (fileData) {
|
||||
console.log('Dispatching upload event with file data');
|
||||
dispatch('upload', {
|
||||
type: 'google-drive',
|
||||
data: fileData // fileData now includes token
|
||||
});
|
||||
} else {
|
||||
console.log('No file was selected');
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Google Drive Error:', error);
|
||||
|
||||
Reference in New Issue
Block a user