mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 13:55:19 +00:00
feat: Add support for Google Slides with text/plain export
This commit is contained in:
parent
9fc4ef323c
commit
f4b9f77cc9
1 changed files with 2 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ export const createPicker = () => {
|
||||||
.setIncludeFolders(false)
|
.setIncludeFolders(false)
|
||||||
.setSelectFolderEnabled(false)
|
.setSelectFolderEnabled(false)
|
||||||
.setMimeTypes(
|
.setMimeTypes(
|
||||||
'application/pdf,text/plain,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.google-apps.document,application/vnd.google-apps.spreadsheet'
|
'application/pdf,text/plain,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.google-apps.document,application/vnd.google-apps.spreadsheet,application/vnd.google-apps.presentation'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.setOAuthToken(token)
|
.setOAuthToken(token)
|
||||||
|
|
@ -141,6 +141,7 @@ export const createPicker = () => {
|
||||||
} 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 =
|
exportFormat =
|
||||||
'application/vnd.openxmlformats-officedocument.presentationml.presentation';
|
'application/vnd.openxmlformats-officedocument.presentationml.presentation';
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue