[Question] IF no file extension then add it

So i am building this thing and part of it sometimes will grab an image like below with no file extension as part of the name. however n8n can see what it is e.g png gif etc

How do I set a node that says:
If you see a file with no extension, then add the extension detected or default back to .png etc?

That would currently only be possible with the Code-Node. There you can access the binary data + metadata. You can find information about the data structure here.

So instead of accessing and setting the json data you do the same for binary one.

For example:

$("Some Node").first().binary["binary key"].fileExtension

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