Google Drive File Writer
This document outlines the functionality and characteristics of the Google Drive File Writer node, which enables automated file uploads to Google Drive.
Node Inputs
File Selection (Choose one method)
- Use Link: Option to upload a file from a URL
- Link: URL of the file to upload (required if using link method)
- Input File: Receive file from previous node (when enabled in Configure Inputs)
Configuration Options
- Folder: Target Google Drive folder for upload (optional)
- File Name: Name for the uploaded file
- Leave blank to use original file name
- Add extension if not included in original file name (e.g., .pdf, .csv)
Configure Inputs
You can make these parameters dynamic by enabling them in “Configure Inputs”:
- file: File to upload (from previous node output)
- file_name: Name for the uploaded file
- folder: Google Drive folder ID or link
Dynamic Drive Folders
This node supports specifying destination folders dynamically:
- Enable the “Folder” input in “Configure Inputs”
- Connect to a node that outputs either:
- A folder link:
https://drive.google.com/drive/folders/FOLDER_ID
- A folder ID:
FOLDER_ID
- A folder link:
- The file will be saved to the specified folder
Note: The folder input can’t be the folder name, it must either be the Drive folder URL or ID.
Node Output
- Drive URL: The Google Drive URL of the uploaded file
Node Functionality
The Google Drive File Writer node automates file uploads to Google Drive.
Key features include:
- Support for multiple file sources (URL, or node input)
- Flexible file naming options
- Dynamic folder destination selection
- Batch mode for multiple file uploads via Loop Mode
- Secure authentication with Gumloop
Example Workflows
1. Automated Report Archiving
2. Website Image Collection
3. File Type Organization
Loop Mode Pattern
When using Loop Mode, the node processes a list of files or links:
- Input a list of file links
- Optionally input a list of file names (must match the size of the file list)
- Optionally input a list of folder destinations
- The node uploads each file to its corresponding destination
Important Considerations
- Requires Authentication with Google - Set up in the Credentials page
- In Loop Mode, ensure list sizes match to avoid errors
In summary, the Google Drive File Writer node provides a streamlined way to automate file uploads to Google Drive, supporting multiple file sources with flexible naming and organization options for efficient file management workflows.