Automate Bulk File Uploads to Google Drive with n8n [Step-by-Step 2026]

Build an n8n workflow to automatically upload multiple files to Google Drive in bulk. Works with webhooks, local folders, and scheduled triggers.
formTrigger
googleDrive
code
+3
Workflow Identifier: 1558
NODES in Use: Form Trigger, Set, Google Drive, If, Code, Sticky Note
Automate file uploads with n8n and Google Drive

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Automation Does

This workflow lets you upload many files to Google Drive fast.

You give it files and a folder name.

It looks if the folder is already there.

If the folder is missing, it makes one for you.

Then it puts all files in that folder.

This saves hours of work and stops mistakes like putting files in wrong folders.


Inputs, Processing, and Outputs

Inputs

  • Multiple files uploaded by users.
  • A folder name typed in the form.

Processing Steps

  • Form Trigger receives files and folder name.
  • Set node saves the folder name to use in next steps.
  • Google Drive node searches for the folder inside a chosen parent folder.
  • If node checks if folder exists or not.
  • If missing, Google Drive creates the folder.
  • Code nodes split multiple files so each uploads individually.
  • Google Drive nodes upload all files to the found or made folder.

Outputs

  • Files uploaded with correct original names inside correct Google Drive folder.
  • No duplicate folder creation cases.
  • Time saved and less upload errors.

Who Should Use This Workflow

This is good for anyone who uploads many files to Google Drive often.

It helps project managers, marketing teams, and any group sharing lots of files weekly.

No need to be tech expert to get more organized with file uploads.


Tools and Services Used

  • n8n automation platform: Runs the workflow.
  • Google Drive API: Searches, creates folders, and uploads files.
  • Google OAuth Credentials: Allows secure Drive access without passwords in workflow.
  • Form Trigger node: Receives files and folder names from users.
  • Set, If, and Code nodes: Handle data flow and file preparation.
  • self-host n8n (optional): Use this if hosting workflow on your own server.

Beginner Step-by-Step: How to Use This Workflow in n8n Production

Step 1: Import Workflow

  1. Download the workflow file using the Download button on this page.
  2. In n8n editor, click “Import from File.”
  3. Select downloaded file to load workflow in n8n.

Step 2: Configure Required Settings

  1. Add Google Drive OAuth credentials in Credentials area.
  2. Update parent folder ID in Google Drive nodes for your Drive folder.
  3. If you changed node names, check the Code node’s expressions and update folderName references accordingly.

Step 3: Test Workflow

  1. Click Execute once on the Form Trigger node to get webhook URL.
  2. Submit multiple files and a folder name to this webhook URL to test live upload.
  3. Watch workflow run logs to confirm files upload correctly.

Step 4: Activate Workflow

  1. When satisfied, click Activate to run workflow automatically on form submissions.
  2. Use the webhook URL as your file upload form or integrate it into your own app.

Important Code Snippet Explanation

This Code node snippet splits all uploaded files into separate items.

Each file keeps its original name and binary data to upload one by one.

let results = [];
const items = $("On form submission").all()

for (item of items) {
    for (key of Object.keys(item.binary)) {
        results.push({
            json: {
                fileName: item.binary[key].fileName
            },
            binary: {
                data: item.binary[key],
            }
        });
    }
}

return results;

Change the node name inside $(“On form submission”) if your form node has a different name.


Customization Ideas

  • Change parent folder ID in Google Drive nodes to upload files to different folders.
  • Add extra form fields like description or tags and update workflow to store them.
  • Include email notifications after upload to alert team.
  • Validate file types in the Code node to block disallowed files.

Common Issues and Troubleshooting

Issue: Folder search finds no folder and creation fails.

Cause: Wrong parent folder ID or missing drive permission.

Fix: Double-check Google Drive parent folder ID in nodes and verify OAuth credential scopes.

Issue: Uploaded files are empty or damaged.

Cause: Binary data not passed correctly from Code node to upload nodes.

Fix: Ensure Code node outputs binary field named “data” and upload node input is set to “data”.


Pre-Production Checklist

  • Verify Google Drive OAuth credentials are active with correct scope.
  • Test form trigger with sample files and folder names.
  • Confirm folder search returns right folders.
  • Check If node branches based on folder presence properly.
  • Test uploading files to both existing and created folders.

Deployment Guide

After testing, activate workflow to run automatically.

Use Form Trigger’s webhook URL to submit files from your form or app.

Watch workflow runs for errors and fix as needed.


Summary

✓ Saves time by automating many file uploads to Google Drive.

✓ Prevents folder duplication by checking if folder exists.

✓ Uploads files with original file names into correct folders.

→ Result is faster, accurate, organized file storage in Google Drive.


Automate file uploads with n8n and Google Drive

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Yes, update the parent folder ID inside the Google Drive nodes to change the upload destination.
Yes, every search, folder creation, and file upload counts toward Google Drive API quota.
The workflow uses Google OAuth, which ensures secure access and uploads files directly to the user’s Drive.
Make sure the Code node outputs binary data under field name ‘data’ and the Google Drive upload nodes use ‘data’ as input.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.