Templates / Write JSON to disk (binary)

Write JSON to disk (binary)

Needs changes

by mike · 5,707 views · created 2019-10-11 · File Management

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: Write Binary File, Function (legacy). 2 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 3 nodes and runs from “Create Example Data” (no trigger node, so run it manually or call it from another workflow). It uses only n8n's built-in nodes.

How it runs

Trigger: From “Create Example Data” (no trigger node, so run it manually or call it from another workflow).

  1. Create Example Data (Function): runs custom JavaScript (legacy Function node)
  2. Make Binary (Function): runs custom JavaScript (legacy Function node)
  3. Write Binary File: uses Write Binary File

Before you upgrade to n8n 3.0

2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • Write Binary File: replace with Read/Write Files from Disk.
  • Function (legacy) in Make Binary, Create Example Data: replace with Code node, mode 'Run Once for All Items'.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
Write Binary File
Write Binary File
Read/Write Files from Disk
Function (legacy)
Make Binary, Create Example Data
Code node, mode 'Run Once for All Items'

Nodes used (2)

From the author

The “Write Binary File” expects binary data. The JSON data is, however, JSON ;) There should really be a node that allows moving data around between both of them. For now, it can be done with a Function-Node. At least till a proper one is in place. The first…

Excerpt from mike's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.