feat(drive): add --convert flag to upload#240
Closed
Danielkweber wants to merge 1 commit intosteipete:mainfrom
Closed
feat(drive): add --convert flag to upload#240Danielkweber wants to merge 1 commit intosteipete:mainfrom
Danielkweber wants to merge 1 commit intosteipete:mainfrom
Conversation
…nversion Uploads .docx/.xlsx/.pptx (and legacy .doc/.xls/.ppt, .csv, .txt, .html) as native Google Docs/Sheets/Slides instead of opaque files. Strips Office extensions from the filename automatically. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Duplicate of #226 |
steipete
added a commit
that referenced
this pull request
Feb 13, 2026
Add Drive upload conversion with auto detection (--convert) and explicit targets (--convert-to), preserve explicit --name values, and improve conversion behavior tests/docs for PR #240. Co-authored-by: Daniel Weber <daniel@suno.com>
Owner
|
Landed on main in 2ecdf2f (squashed from this PR). Included: --convert auto mode, --convert-to explicit target mode, pre-service conversion validation, preserved explicit --name, stronger upload metadata tests, and docs/changelog updates. Thanks @Danielkweber. |
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.
Summary
--convertflag togog drive uploadthat converts Office files to native Google formats on upload.docx/.doc→ Google Doc,.xlsx/.xls/.csv→ Google Sheet,.pptx/.ppt→ Google Slides,.txt/.html→ Google Docreport.docx→report)--convertis used with an unsupported file typeUsage
Test plan
googleConvertMimeType()— 13 cases covering all supported and unsupported extensionsstripOfficeExt()— 9 cases for extension stripping--convertflag--convert.docxand confirmed it appears as a native Google Doc in Drive🤖 Generated with Claude Code