Tutorial: Process Multiple Files via Form - Binary Data & Loops
Upload multiple files through a form trigger, split binary data, loop over items, and save each file individually. Ideal for learning n8n's binary handling, loops, and Split Out node.
This workflow demonstrates how to handle multiple file uploads using n8n's Form Trigger node, where users can select and submit multiple JSON files (configurable for other types). The files arrive as binary data in a single 'files' field. The Split Out node then extracts each file into separate items, preserving binary data, making it ready for batch processing.
Next, a Split In Batches node (Loop Over Items) iterates over the split items using $runIndex to track each file dynamically. The Read/Write File node saves each file with a unique name like 'out_{filename}{runIndex}', showcasing correct access to binary data via expressions like 'files{{$runIndex}}'. This pattern is crucial for workflows involving file processing, such as sending batches to AI APIs for analysis or bulk data imports.
Benefits include mastering tricky n8n concepts like binary data manipulation, looping with $runIndex, and Split Out/In nodes, saving hours of trial-and-error for developers. Use cases: batch file validation, AI document processing pipelines, automated backups from forms, or integrating with tools like OpenAI for multi-file analysis. Easily adaptable by swapping the Save node for HTTP Request to POST files elsewhere.
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Related bundle
YouTube Creator Pipeline
8 hand-picked workflows for $39.00.
That is $4.88 each, vs $9.99 for this one alone.
View bundleSecure checkout powered by Stripe
Tags
Support
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related Enterprise workflows
- WhatsApp AI Chatbot for Restaurant Bookings & Service$22.99
- Automate Sports Betting Data with TheOddsAPI$12.99
- AI Video Generator: 4x Cheaper than Veo3 via Google Sheets & Fal.AI$24.99
- AI Meeting Management Agent for Telegram & Google Calendar$24.99
- js-yaml YAML Parser & Serializer Package Workflow$8.99
- Clearbit Tool MCP Server for AI Agents$24.99
More from Saskia Kowalczyk
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.