Skip to content

feat: add support for Google Worspace files for Google Drive integration#308

Open
kd-kinuthiadavid wants to merge 2 commits intodevfrom
feat/extend_gdrive_doc_support
Open

feat: add support for Google Worspace files for Google Drive integration#308
kd-kinuthiadavid wants to merge 2 commits intodevfrom
feat/extend_gdrive_doc_support

Conversation

@kd-kinuthiadavid
Copy link
Collaborator

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

  • feat: add support for Google Workspace files
  • fix: bypass 10 MB limit on exported Google Workspace files

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
@codesandbox
Copy link

codesandbox bot commented Feb 15, 2026

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@kd-kinuthiadavid kd-kinuthiadavid marked this pull request as ready for review February 15, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant