Bulk Upload Files to Google Drive with Intelligent Folder Management
detail.loadingPreview
Effortlessly upload multiple files to Google Drive using a simple form. This workflow intelligently manages your uploads by checking for existing folders, creating new ones if needed, and ensuring all your documents are neatly organized without manual intervention.
About This Workflow
This n8n workflow provides a robust solution for batch uploading multiple files to Google Drive through a user-friendly web form. Upon submission, the workflow automatically processes the uploaded files and a specified folder name. It intelligently checks if the designated Google Drive folder already exists. If the folder is not found, the workflow creates it on the fly, ensuring your organizational structure is maintained. Finally, all submitted files are uploaded to the correct target folder, streamlining your data management and saving significant time for tasks involving bulk file transfers and organization.
Key Features
- User-Friendly Web Form: Initiate uploads easily with a custom web form supporting multiple file selections and folder name input.
- Intelligent Folder Management: Automatically checks for the existence of a target Google Drive folder and creates it if it doesn't already exist.
- Batch File Upload: Efficiently handles and uploads multiple files in a single submission, maintaining original file names.
- Automated Organization: Ensures all uploaded files are neatly placed into the designated (or newly created) Google Drive folder, eliminating manual sorting.
- Flexible Google Drive Integration: Seamlessly connects with your Google Drive account for file and folder operations.
How To Use
- On form submission (Form Trigger):
- Configure the form fields: ensure you have a
filefield (required, typefile) and afolderNamefield (required, typestring). - Copy the generated webhook URL to share the form.
- Configure the form fields: ensure you have a
- Google Drive Account (Credentials):
- Before running, ensure you have a Google Drive OAuth2 API credential configured with appropriate permissions to create folders and upload files.
- Get Folder Name (Set):
- This node automatically extracts the
folderNamesubmitted via the form. No manual configuration is typically needed here.
- This node automatically extracts the
- Search specific folder (Google Drive):
- The
queryStringname = '{{ $json.folderName }}'searches for a folder by name. - Important: Modify the
queryStringto specify the parent folder where you want to search. Replace'<folderId>' in parentswith the actual ID of the parent folder (e.g., your "My Drive" root folder ID, or a specific shared folder ID).
- The
- Folder found ? (If):
- This node checks if the previous
Search specific foldernode returned any data (meaning the folder exists). No configuration needed unless you want to change the logic.
- This node checks if the previous
- Create Folder (Google Drive - if not found branch):
- If the folder doesn't exist, this node creates it. Ensure
nameis={{ $('On form submission').item.json.folderName }}. - Set the
folderIdto the parent folder where new folders should be created. Currently, it's set to a specific "n8n" folder; adjust this to your desired parent folder.
- If the folder doesn't exist, this node creates it. Ensure
- Prepare Files for Upload / Prepare Files for New Folder (Code):
- These nodes iterate through all uploaded files from the form submission and structure them for the Google Drive upload nodes. No modification is typically needed.
- Upload Files / Upload to New Folder (Google Drive):
- These nodes handle the actual file uploads.
- For
Upload Files(existing folder branch), ensurefolderIdreferences={{ $('Search specific folder').item.json.id }}. - For
Upload to New Folder(new folder branch), ensurefolderIdreferences={{ $('Create Folder').item.json.id }}. - Confirm
inputDataFieldNameis set todatain both.
Apps Used
Workflow JSON
{
"id": "6aa0e917-d239-413e-afef-0c94e622ba14",
"name": "Bulk Upload Files to Google Drive with Intelligent Folder Management",
"nodes": 13,
"category": "Operations",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 6aa0e917-d239...
About the Author
AI_Workflow_Bot
LLM Specialist
Building complex chains with OpenAI, Claude, and LangChain.
Statistics
Related Workflows
Discover more workflows you might like
Google Sheets to Icypeas: Automated Bulk Domain Scanning
This workflow streamlines the process of performing bulk domain scans by integrating your Google Sheets data directly with the Icypeas platform. Automate the submission of company names from your spreadsheet to Icypeas for comprehensive domain information, saving valuable time and effort.
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.