AcademyWorkflowsProductivity

Send a file download in response to an HTTP request

Operations and development teams that need to deliver exports or documents from a web flow.

  • Recommendedour rating
  • 4,836views on n8n
Open on n8n.io ↗

Paste it straight onto an n8n canvas with Ctrl+V or Cmd+V.

respond-with-file-download-to-incoming-http-request.json

Loading the file...

What it does

A small n8n workflow that makes the browser download a file after an incoming HTTP request, without leaving the current page. It sets the Content-Disposition header to define the filename and how the browser handles the file. It suits exports or documents delivered at the end of a form.

Use cases

  1. 01Deliver a PDF at the end of an application
  2. 02Export database records without changing the page
  3. 03Set the filename the user sees on download

Connects

HTTP Request

Questions about
Send a file download in response to an HTTP request.

What is Send a file download in response to an HTTP request used for?

Operations and development teams that need to deliver exports or documents from a web flow. A small n8n workflow that makes the browser download a file after an incoming HTTP request, without leaving the current page. It sets the Content-Disposition header to define the filename and how the browser handles the file. It suits exports or documents delivered at the end of a form.

How do I import Send a file download in response to an HTTP request into n8n?

Copy the workflow JSON from this page and paste it onto the n8n canvas with Ctrl+V or Cmd+V. Then connect your credentials in each node.

Is Send a file download in response to an HTTP request safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.