Simple file upload form via webhook

Describe the problem/error/question

form works but the uploaded file has Content-Disposition header merged on top of a binary file it also doesn’t have proper metadata in the binary output of webhook like below (this should be png file). Any idea how to fix this?

Please share your workflow

Share the output returned by the last node

png file uploaded by form and then downloaded and opened in notepad has on the beginning header like below

------WebKitFormBoundaryRX4Uo0XwfBkDhuO5
Content-Disposition: form-data; name=“file”; filename=“zdjecie-sklepy-przykÅ‚ad.png”
Content-Type: image/png

‰PNG


IHDR  ° À ú„ tEXtSoftware Adobe ImageReadyqÉe< fiTXtXML:com.adobe.xmp <?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?> <x:xmpmeta xmlns:x=“adobe:ns:meta/” x:xmptk=“Adobe XMP Core 5.3-c011 66.145661, 2012/02/06-14:56:27 “> <rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#”> <rdf:Description rdf:about=”” xmlns:xmpMM="http://…

instead of

‰PNG


IHDR  ° À ú„ tEXtSoftware Adobe ImageReadyqÉe< fiTXtXML:com.adobe.xmp <?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?> <x:xmpmeta xmlns:x=“adobe:ns:meta/” x:xmptk=“Adobe XMP Core 5.3-c011 66.145661, 2012/02/06-14:56:27 “> <rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#”> <rdf:Description rdf:about=”” xmlns:xmpMM="http://…

Information on your n8n setup

  • **n8n version: 1.29.1 **
  • Database (default: SQLite): postrgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: linux

Hey @Maciej_Mogilany,

Welcome to the community :raised_hands:

That looks like an old version of a workflow I once made, To fix the upload issue add a new Webhook node as we have fixed this issue or use the below example.

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