How to upload large files to n8n?

When trying to upload PDF files that are over 200mb, both form and webhooks DO NOT fail but also, DO NOT show the binary file. This is already an error by itself because it silently kills the error.

I have defined in multiple places that large files are accepted:

nginx/sites-available/default:
client_max_body_size=1024M;

env vars:
-e N8N_PAYLOAD_SIZE_MAX=1000
-e N8N_FORM_TRIGGER_MAX_PAYLOAD_SIZE=1073741824 \

I don’t have a workflow, just put form trigger or webhook trigger and that’s it.

Anything else missing?

Information on your n8n setup

  • n8n version: 1.86.1
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, google cloud VM):
  • Operating system: Debian

Hi @Spaasz

You need to change this environment variable (because the default is 200MiB)

N8N_FORMDATA_FILE_SIZE_MAX

Max payload size for files in form-data webhook payloads in MiB.

:link: Endpoints environment variables | n8n Docs

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.