n8n · HTTP Request node

Unsupported media type (415) when you send a file

Short answer

This n8n HTTP Request error displays when the API expects multipart/form-data but the request body is not multipart. Set Body Content Type to Form-Data.

VerifiedLast verified

01Error text

n8n error
Unsupported media type (415)

02Likely causes

  • Body Content Type > n8n Binary File sends the file as the whole request body, with no multipart envelope or boundary. An API that only accepts multipart uploads rejects this.

03How to fix it

  1. Set Body Content Type to Form-Data.
  2. Add a Body Parameters entry and set its Type to n8n Binary File.
  3. Set Name to the form field name from the API documentation.
  4. Set Input Data Field Name to the binary property that holds the file, such as data.

04Official documentation

Test every fix in a non-production environment before you apply it to production. See how entries are verified.

More for n8n work:Open n8n jobsn8n rates and salaries

The iPaaS Brief

Subscribe to The iPaaS Brief.

The iPaaS newsletter for the people who run integrations. From iPaaS Group.

Free. You finish on theipaasbrief.com and confirm by email.