mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-17 23:05:20 +00:00
feat: Change Google Docs export format to markdown
This commit is contained in:
parent
f4b9f77cc9
commit
b46f4ff3e0
1 changed files with 1 additions and 4 deletions
|
|
@ -136,14 +136,11 @@ export const createPicker = () => {
|
||||||
if (mimeType.includes('google-apps')) {
|
if (mimeType.includes('google-apps')) {
|
||||||
// Handle Google Workspace files
|
// Handle Google Workspace files
|
||||||
if (mimeType.includes('document')) {
|
if (mimeType.includes('document')) {
|
||||||
exportFormat =
|
exportFormat = 'text/markdown';
|
||||||
'application/vnd.openxmlformats-officedocument.wordprocessingml.document';
|
|
||||||
} else if (mimeType.includes('spreadsheet')) {
|
} else if (mimeType.includes('spreadsheet')) {
|
||||||
exportFormat = 'text/csv';
|
exportFormat = 'text/csv';
|
||||||
} else if (mimeType.includes('presentation')) {
|
} else if (mimeType.includes('presentation')) {
|
||||||
exportFormat = 'text/plain';
|
exportFormat = 'text/plain';
|
||||||
exportFormat =
|
|
||||||
'application/vnd.openxmlformats-officedocument.presentationml.presentation';
|
|
||||||
} else {
|
} else {
|
||||||
exportFormat = 'application/pdf';
|
exportFormat = 'application/pdf';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue