Blocks

Google Drive

Upload, download, and list files

Integrate Google Drive functionality to manage files and folders. Upload new files, download existing ones, and list contents of folders using OAuth authentication. Supports file operations with custom MIME types and folder organization.

Back to Catalog
Toolsgoogle_drive

Block Preview

Google Drive

Google Drive

Upload, download, and list files

Usage

  1. Add the block to your workflow and connect it to the upstream step.
  2. Connect the required credentials or OAuth provider before running.
  3. Fill in required inputs and optional parameters for the run.
  4. Run a test execution, inspect outputs, and iterate before deploying.
  5. Deploy the google_drive block with monitoring enabled in production.

Inputs (UI)

Google Drive Account

oauth-input

Placeholder: Select Google Drive account

Layout: full

Provider: google-drive

File Name

short-input

Placeholder: Name for the uploaded file (e.g., document.txt)

Layout: full

Condition: operation = "upload"

Content

long-input

Placeholder: Content to upload to the file

Layout: full

Condition: operation = "upload"

MIME Type

short-input

Placeholder: File MIME type (default: text/plain, e.g., text/plain, application/json, text/csv)

Layout: full

Condition: operation = "upload"

Parent Folder ID

short-input

Placeholder: ID of the parent folder (leave empty for root folder)

Layout: full

Condition: operation = "upload"

File ID

short-input

Placeholder: ID of the file to download (find in file URL or by listing files)

Layout: full

Condition: operation = "download"

Select Folder

file-selector

Placeholder: Select a folder

Layout: full

Provider: google-drive

Or Enter Folder ID Manually

short-input

Placeholder: ID of the folder to list (leave empty for root folder)

Layout: full

Condition: folderId = ""

Search Query

short-input

Placeholder: Search for specific files (e.g., name contains "report")

Layout: full

Results Per Page

short-input

Placeholder: Number of results (default: 100, max: 1000)

Layout: full

Inputs (API)

credential

string

Required

fileName

string

Optional

content

string

Optional

mimeType

string

Optional

fileId

string

Optional

folderId

string

Optional

query

string

Optional

pageSize

number

Optional

Outputs

Primary response type:

{
  "content": "string",
  "metadata": "json"
}

Tool Access

google_drive_uploadgoogle_drive_downloadgoogle_drive_list
Google Drive | NowFlow Blocks