Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Upload a local file to Google Drive with automatic MIME-type detection and optional folder targeting via the gws CLI.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
SKILL.md
1---2name: gws-drive-upload3description: "Google Drive: Upload a file with automatic metadata."4metadata:5version: 0.22.56openclaw:7category: "productivity"8requires:9bins:10- gws11cliHelp: "gws drive +upload --help"12---1314# drive +upload1516> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.1718Upload a file with automatic metadata1920## Usage2122```bash23gws drive +upload <file>24```2526## Flags2728| Flag | Required | Default | Description |29|------|----------|---------|-------------|30| `<file>` | ✓ | — | Path to file to upload |31| `--parent` | — | — | Parent folder ID |32| `--name` | — | — | Target filename (defaults to source filename) |3334## Examples3536```bash37gws drive +upload ./report.pdf38gws drive +upload ./report.pdf --parent FOLDER_ID39gws drive +upload ./data.csv --name 'Sales Data.csv'40```4142## Tips4344- MIME type is detected automatically.45- Filename is inferred from the local path unless --name is given.4647> [!CAUTION]48> This is a **write** command — confirm with the user before executing.4950## See Also5152- [gws-shared](../gws-shared/SKILL.md) — Global flags and auth53- [gws-drive](../gws-drive/SKILL.md) — All manage files, folders, and shared drives commands54