Doubt about the difference in binary data response

In my workflow I have binary files coming from different sources. However, I noticed that the response is different in both situations. And I realized that in one of the forms (first image) it is not possible to pass the binary as a parameter.

1:


2:

How can I make the binary of the first image behave like the second image?

Hey @Guilherme_Hirsch,

It sounds like you just need to set a filename for the binary as it doesn’t have one, Where are you loading it from?

You should be able to use a code node to add a name so something like the below to set it if it doesn’t exist.

(untested so may need tweaking)

for (const item of $input.all()) {
  if (!item.binary.data.fileName) {
    item.binary.data.fileName = `${$execution.id}.${item.binary.data.fileExtension}`;
  }
}
return $input.all;