feat: Add comprehensive logging to Google Drive picker integration

This commit is contained in:
Taylor Wilsdon (aider)
2024-12-15 18:51:21 -05:00
parent b458383b82
commit 4adcd2b64a
2 changed files with 22 additions and 2 deletions

View File

@@ -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);