Binary file n8n form

hey I am trying to follow this tutorial : https://www.youtube.com/watch?v=93NwI8AeMjM&t=848s

everything works fine till the code node, but after that it gives error :

code node executes successfully it shows me the file name, but when I click its borken and also after code node there is openai image generation http node which throws this error :

The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined

Please help.

1 Like

Hi @Suhani_Bhatt,

Can you copy your workflow and paste it into a code block here? That will help determine the issue.

Best,

Robert

1 Like


I am also stuck on the same issue. Please help if you found the solution

Replace code block with Merge block. Add input2 to merge from the form. In all the five HTTP Request nodes following the SWITCH node set Input ‘Data Field Name’ to ‘Upload_Product_Image’ under parameter type ‘n8n Binary File’.