Workflows
Blocks
Integrations
Google Drive

Google Drive Block

The Google Drive block enables file operations with Google Drive. Upload files, read content, create folders, and manage your cloud storage within workflows.

Key Features

  • Upload Files - Store files in Google Drive
  • Read Files - Retrieve file content and metadata
  • Create Folders - Organize files with folder creation
  • Delete Files - Remove files from Drive
  • Share Options - Control file visibility and permissions

Connect your Google account in workspace settings to use this block. Ensure the Drive API is enabled in your Google Cloud project.

Configuration

ParameterTypeRequiredDescription
CredentialsSelectYesGoogle OAuth credentials
ActionSelectYesUpload, Read, Delete, or Create Folder
File/Folder IDTextVariesID of the file or folder to operate on
File ContentText/BinaryFor UploadThe file data to upload
File NameTextFor UploadName for the uploaded file
MIME TypeSelectFor UploadFile type (PDF, image, document, etc.)
Folder IDTextOptionalParent folder for uploads
Make PublicBooleanOptionalWhether to share file publicly

Setup Guide

  1. Configure Google OAuth credentials in workspace settings
  2. Add the Google Drive block to your workflow
  3. Select your Google credentials
  4. Choose the action type
  5. Configure parameters based on the action

Actions

Upload File

Upload a file to Google Drive:

Action: Upload File
File Name: report-{{date}}.pdf
MIME Type: application/pdf
File Content: {{generated_pdf}}
Folder ID: 1ABC123xyz (optional)
Make Public: false

Read File

Retrieve file content and metadata:

Action: Read File
File ID: 1ABC123xyz

Returns: File content, name, MIME type, size, and metadata.

Delete File

Remove a file from Drive:

Action: Delete File
File ID: 1ABC123xyz

Create Folder

Create a new folder:

Action: Create Folder
Folder Name: Monthly Reports
Parent Folder ID: 1ABC123xyz (optional)

MIME Types

TypeMIME Type
PDFapplication/pdf
Word Documentapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
Excel Spreadsheetapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Image (PNG)image/png
Image (JPEG)image/jpeg
Plain Texttext/plain
JSONapplication/json

Output

The block outputs vary by action:

Upload:

  • fileId (string) - ID of the uploaded file
  • webViewLink (string) - Link to view the file
  • downloadLink (string) - Direct download link

Read:

  • content (string/binary) - File content
  • name (string) - File name
  • mimeType (string) - File type
  • size (number) - File size in bytes

Create Folder:

  • folderId (string) - ID of the created folder

Best Practices

  • Organize Files - Use folders to keep files organized
  • Set Permissions - Only make files public when necessary
  • Use Descriptive Names - Include dates or identifiers in file names
  • Handle Large Files - Consider file size limits for your plan

Error Handling

ErrorCauseSolution
File not foundInvalid file IDVerify the file ID exists
Permission deniedInsufficient accessCheck sharing settings and permissions
Storage quota exceededDrive is fullFree up space or upgrade storage
Invalid MIME typeUnsupported formatUse a supported file type
Indite Documentation v1.4.0
PrivacyTermsSupport