Temp file storage

I want to decide first file Name and use accordingly the node to extract the text.but I have issue I am not able to access the file when I have to extract. Is there any alternative?

you have to give clear location of files.
e.g: /home/node/.n8n/files

@moosa how will I find the location of files . that webhook node have

are these files available in binary format in workflow when webhook triggers?

because you can just rename binary name and file name with codenode.

There are a couple of problems with this workflow:

  1. webhook response: there’s currently no Respond to webhook node, so that would probably give you an error. A quick solution is using

  2. In the Code node you are extracting the extension, but dropping the binary data. This snippet should work

const binaryProperties = $input.item.binary;
const binaryData = binaryProperties.data;

return {
    json: {
        mimeType: binaryData.mimeType
    },
    binary: $input.item.binary
}
  1. you need the input binary field in the Extract nodes to data

  2. In the Switch node check for mimeType instead of extension (This is what we use in the code node and is safer than using the extension)