Form response with binary data

When i call a webhook trigger and subsequently use the respond with webhook node to return binary data it results in the download of that data

When i use a form trigger and subsequently use the respond with webhook node to return the same binary data the browser renders the binary data inline instead of as an attachment

I attempted to explicitly set Content-Disposition = attachment in the response headers but it’s not respected.

Is there a method to allow a form to respond with a binary file download after submission?

Hey Dan, I’m a PM for the Nodes team at n8n! :wave: We’re working on a “Respond with binary” setting on a Form End node right now, should be in the beta release the week after next.

Here’s an early demo, does that fit with your mental model of how this should behave (showing completion screen and auto-downloading the file)?

2 Likes

This is EXACTLY what i’m looking for. This will be extremely helpful for some efforts I am working on. Thanks!

1 Like

Looking forward to this too.

Hi - has this been done? I’m trying to use Form Ending node to return binary file but it won’t work no matter how I try…

1 Like