Skip to content

feat(drive): add upload --replace for in-place updates#234

Closed
salmonumbrella wants to merge 2 commits into
openclaw:mainfrom
salmonumbrella:feat/drive-upload-replace-232
Closed

feat(drive): add upload --replace for in-place updates#234
salmonumbrella wants to merge 2 commits into
openclaw:mainfrom
salmonumbrella:feat/drive-upload-replace-232

Conversation

@salmonumbrella

Copy link
Copy Markdown
Contributor

Fixes #232

Adds gog drive upload --replace <fileId> to update file contents in-place (Drive files.update media upload), preserving the fileId and shared link/permissions.

Notes:

  • Rejects Google Workspace (native) files (application/vnd.google-apps.*) for now.
  • Supports --name to rename the target while replacing content.
  • Supports --keep-revision-forever and --mime-type override.

Testing: make ci

@steipete steipete self-assigned this Feb 13, 2026
@steipete steipete closed this Feb 14, 2026
@steipete

Copy link
Copy Markdown
Collaborator

Correction note: landed on main in commits c39d731 and 1251537. Included flags: --replace, --mime-type, --keep-revision-forever, plus --replace conflict validation with convert flags, tests, docs, and changelog. Thanks @salmonumbrella.

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.

feat(drive): in-place file replace (preserve fileId/shared link)

2 participants