> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.meetgail.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.meetgail.com/_mcp/server.

# Google Drive Upload File

> Saves a file into a Google Drive folder, creating it or replacing the matching one by name.

The Upload File node saves a file from your workflow into a Google Drive folder.
If no file with that name is in the folder it creates a new one; if one already
matches, it replaces the contents in place while keeping the same link and
history.

## When to use it

* You produced a file in the run and want to store it in a shared Drive folder.
* You want to keep a single file up to date, replacing it rather than piling up
  copies.
* You moved a file in from somewhere else (a download or an agent) and want it in
  Drive.

## Inputs

| Field     | What it's for                                                               | Example                     |
| --------- | --------------------------------------------------------------------------- | --------------------------- |
| File      | The file from the run to upload.                                            | A file from a download step |
| File name | The name to save it under. Must include an extension.                       | `monthly-report.csv`        |
| Folder    | The Drive folder to save into. Leave blank to use your main Drive.          | `Monthly Reports`           |
| File type | An optional override for the file's type, if the stored one is out of date. | `PDF`                       |

Any field can be a fixed value or an [expression](/platform/workflows/core-concepts/expressions/using-expressions-in-nodes)
that reads from an earlier step.

## Outputs

| Field         | What you get back                                                      |
| ------------- | ---------------------------------------------------------------------- |
| File id       | The id of the file in Drive.                                           |
| Name          | The file name as stored in Drive.                                      |
| Link          | A browser link to the file's page in Drive.                            |
| Newly created | True if a new file was created, false if an existing one was replaced. |

## Example

A workflow builds a fresh renewals summary for Chen Insurance Group each month and
saves it to Drive with Upload File under the name `renewals-summary.csv` in the
team's reports folder. Because the name stays the same, each run replaces last
month's file in place, so the shared link the team bookmarked always points at the
latest version.

![The Google Drive Upload File node configuration panel, showing the file, file name, and folder.](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/gail.docs.buildwithfern.com/969b6ebaa2589572a47f054aaea57668073c7ef4da2e6118adf1625075505463/docs/pages/platform/workflows/assets/google-drive-upload-file.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260823%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260823T232933Z&X-Amz-Expires=604800&X-Amz-Signature=80575ffe24c07fb4edbc21bcb1f6663a6008c0c1badd13727aa419dc22627377&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

Upload matches on the file name within the folder. If two files in that folder
already share the name you gave, the node refuses to guess which one to replace
and reports a problem instead - so keep names unique within a folder.

## Related nodes

#### [Download File](/platform/workflows/node-reference/integrations/google-drive/google-drive-download-file)

Pull a file out of Drive before working with it.

#### [List Files](/platform/workflows/node-reference/integrations/google-drive/google-drive-list-files)

Find files in a folder before uploading.

#### [Create CSV](/platform/workflows/node-reference/files-and-documents/create-csv)

Build a CSV file in the run before uploading it.

#### [Check](/platform/workflows/node-reference/logic-and-flow/check)

Branch on whether the file was newly created.