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.
Block Preview
Google Drive
Upload, download, and list files
Usage
- Add the block to your workflow and connect it to the upstream step.
- Connect the required credentials or OAuth provider before running.
- Fill in required inputs and optional parameters for the run.
- Run a test execution, inspect outputs, and iterate before deploying.
- Deploy the google_drive block with monitoring enabled in production.
Inputs (UI)
Google Drive Account
oauth-inputPlaceholder: Select Google Drive account
Layout: full
Provider: google-drive
File Name
short-inputPlaceholder: Name for the uploaded file (e.g., document.txt)
Layout: full
Condition: operation = "upload"
Content
long-inputPlaceholder: Content to upload to the file
Layout: full
Condition: operation = "upload"
MIME Type
short-inputPlaceholder: File MIME type (default: text/plain, e.g., text/plain, application/json, text/csv)
Layout: full
Condition: operation = "upload"
Parent Folder ID
short-inputPlaceholder: ID of the parent folder (leave empty for root folder)
Layout: full
Condition: operation = "upload"
File ID
short-inputPlaceholder: ID of the file to download (find in file URL or by listing files)
Layout: full
Condition: operation = "download"
Select Folder
file-selectorPlaceholder: Select a folder
Layout: full
Provider: google-drive
Or Enter Folder ID Manually
short-inputPlaceholder: ID of the folder to list (leave empty for root folder)
Layout: full
Condition: folderId = ""
Search Query
short-inputPlaceholder: Search for specific files (e.g., name contains "report")
Layout: full
Results Per Page
short-inputPlaceholder: Number of results (default: 100, max: 1000)
Layout: full
Inputs (API)
credential
stringRequired
fileName
stringOptional
content
stringOptional
mimeType
stringOptional
fileId
stringOptional
folderId
stringOptional
query
stringOptional
pageSize
numberOptional
Outputs
Primary response type:
{
"content": "string",
"metadata": "json"
}