Google Drive Write

Provides integration with the Google Drive API, enabling the upload of files to your Google Drive account for use within your workflows.

Revision History

1.0.0.0 Initial Release

Properties

Connection

Type: Connection Input
The connection profile for your Google Drive account and authentication details.

FileSizeLimitMB
Type: Integer
Maximum allowed file size for uploads in megabytes. Files exceeding this size will be rejected.

IncludeSharedDrives
Type: Boolean
Whether to include shared drives in file operations.

ClientId
Type: String
The Client ID from your Google Cloud OAuth credentials.

ClientSecret
Type: Password
The Client Secret from your Google Cloud OAuth credentials.

AccessToken
Type: Password
The OAuth access token generated when connecting your account to Google Drive.

RefreshToken
Type: Password
The OAuth refresh token generated when connecting your account to Google Drive. This is used to automatically refresh the AccessToken when it expires.

FileName
Type: String Input
The name of the file to upload.

ParentFolderId
Type: String Input (Optional)
The ID of the parent folder where the file will be uploaded. If omitted, the file is uploaded to the root folder.

MimeType
Type: String Input (Optional)
The MIME type of the file. If not specified, the MIME type is inferred from the file extension.

File
Type: Binary Input
The binary contents of the file to upload. Supported input types are byte array, stream, or base64 string.

Response
Type: JSON Output
JSON response containing metadata of the uploaded file, such as file ID, name, and parent folder(s).

Setup

To use this node, follow these steps:

  1. Create a Google Cloud Project
  • Go to the Google Cloud Console.
  • Create a new project or select an existing one.
  • Enable the Google Drive API in the API Library.
  1. Create OAuth 2.0 Credentials
  • In the Cloud Console, navigate to APIs & Services > Credentials.
  • Click Create Credentials > OAuth client ID.
  • Choose Web Application as the Application Type.
  • Enter a name for your OAuth client.
  • Under Authorized redirect URIs, add your platform’s OAuth redirect URI.
  • See OAuth Setup for details on your platform’s redirect URI.
  • Save and note the Client ID and Client Secret.
  1. Configure the Node Connection
  • Enter the ClientId and ClientSecret from step 2.
  • Optionally set IncludeSharedDrives to true to include shared drives in file operations.
  • Optionally set FileSizeLimitMB to restrict upload file sizes.

Use the Node

  • Set FileName to the desired name for the uploaded file.
  • Optionally set ParentFolderId to upload into a specific folder; otherwise, the file will be uploaded to the root folder.
  • Optionally specify MimeType; if omitted, it will be auto-detected.
  • Provide the file content in the File input property as a byte array, stream, or base64 string.
  • The node returns a JSON response with file metadata in the Response output property.

Remarks

  • Files with duplicate names in the same folder are allowed; Google Drive permits multiple files with the same name in one folder.
  • Uploads exceeding the configured file size limit will be rejected.
  • Ensure the connected Google account has permission to upload files to the specified folder.
  • Large files may take longer to upload and could be subject to API rate limits.

Related Nodes

See Also