To view the n8n flow demo and copy the JSON you need to purchase our Bundle... don't worry, it's FREE

Go to the BUNDLE

Respond with file download to incoming HTTP request

This simple workflow demonstrates how to get an end user's browser to download a file. It makes use of the Content-Disposition header to set a filename and control the browser behavior.

image.png

A use case could be the download of a PDF file at the end of an application process or to export data from a database without replacing the current page content in the browser.

With this approach, the current page remains open and the file is simply downloaded instead:

image.png

The original idea was first presented here by @dickhoning in the n8n community.

Do you want to automate your business?

Let's talk about your project