mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
fix: Use correct OAuth token and headers in Google Drive file upload
This commit is contained in:
parent
1542cb486d
commit
f4f8334153
2 changed files with 3 additions and 5 deletions
|
|
@ -530,9 +530,7 @@
|
|||
id: fileData.id,
|
||||
name: fileData.name,
|
||||
url: fileData.url,
|
||||
headers: {
|
||||
Authorization: 'Bearer [REDACTED]'
|
||||
}
|
||||
headers: fileData.headers // Use the actual headers from the picker
|
||||
});
|
||||
const uploadEvent = {
|
||||
type: 'google-drive',
|
||||
|
|
|
|||
|
|
@ -130,8 +130,8 @@ export const createPicker = () => {
|
|||
name: fileName,
|
||||
url: downloadUrl,
|
||||
headers: {
|
||||
'Authorization': `Bearer ${oauthToken}`,
|
||||
'Content-Type': 'application/json'
|
||||
'Authorization': `Bearer ${token}`, // Use the current valid token
|
||||
'Accept': 'application/json'
|
||||
}
|
||||
};
|
||||
console.log('Resolving picker with:', result);
|
||||
|
|
|
|||
Loading…
Reference in a new issue