feat: add support for Google Worspace files for Google Drive integration#308
Open
kd-kinuthiadavid wants to merge 2 commits intodevfrom
Open
feat: add support for Google Worspace files for Google Drive integration#308kd-kinuthiadavid wants to merge 2 commits intodevfrom
kd-kinuthiadavid wants to merge 2 commits intodevfrom
Conversation
Add ability to select and upload Google Docs, Sheets, and Slides from the Google Drive integration. Workspace files are exported as Office Open XML formats (docx/xlsx/pptx) via the Drive export endpoint. - Create googleDriveUtils.ts with workspace export mapping, effective extension resolution, and accept-filter logic supporting bare extensions, dotted extensions, MIME types, and wildcards - Update downloadFile() to detect Workspace mimeTypes and use the /export endpoint instead of alt=media - Update DriveBrowser filterItems() to use isDriveFileAccepted() for Google Drive files so Workspace files appear when accept allows their export format - Update submitFiles() folder selection filtering to use the same shared helper
The Drive API /export endpoint has a hard 10 MB limit on exported content, causing 403 exportSizeLimitExceeded for larger Workspace files (e.g. 28+ MB Slides). Switch to native Google Docs/Sheets/Slides export URLs which use the same infrastructure as "File → Download" in the web UI and have no such size restriction. - Add exportUrl function to GOOGLE_WORKSPACE_EXPORTS mapping - Use exportUrl(fileId) instead of Drive API /export endpoint
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Docs, Sheets & Slides support to Google Drive integration
Description
Allows the download and export of files of types docs, sheets & slides for Google Drive integration
Type of change