How can i use the value of a variable i created inside the template node

OK, that does make it tricky. How are you going to read the files if they are not on the same machine that is running node-red?

no they are on the same machine it's just that they are of big sizes which seems to be a problem for node red to pass between nodes

So the files are accessible to the node-red server. I still don't understand exactly what you are trying to do on the dashboard. If it is just a matter of selecting files from a list, can't you use a dashboard dropdown node?

its not a list it's an input like this

 <input type="file" id="myFile" webkitdirectory directory multiple onchange="uploadfile()">

Why don't you just read the file in node red rather than upload it?

can you explain more please i didn't understand

You said the files are on the same machine that is running node-red. In that case you can use a File In node to read the file directly from disc.

they can be chosen dynamically it's not a one static file it changes and you can also choose multiple files and you can choose different files each time that's the problem and the size of the files are big so that's what's causing the problem. I can pass them through node i figured how from the documentation you provided to me but its causing a problem because of the file size

Do you mean that you cannot use a File In node because they are too big?

How big are they?

yes i can't pass the encoding because they are big its more then 1,430 KB

That is not a large file, I thought you were going to say they are multiple GB.
The right way to do this is with a File node. I suggest you start a new thread describing what problem you are having.

1 Like

Thank you I am trying to fix it with a file node

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