node-red-dashboard icon indicating copy to clipboard operation
node-red-dashboard copied to clipboard

File Input node msg.last

Open pest-tech opened this issue 2 months ago • 5 comments

Description

Hi all,

I was just wondering if it was possible to add a msg.last = true to the 'file input' node output, to indicate when the last file in a batch has uploaded, when uploading multiple files? Hopefully this makes sense.

Cheers.

Have you provided an initial effort estimate for this issue?

I am no FlowFuse team member

pest-tech avatar Oct 14 '25 00:10 pest-tech

If you attach a Complete node to the File Input node does it get triggered when the uploads are complete? That would be the ideal behaviour.

colinl avatar Oct 21 '25 09:10 colinl

@pest-tech did you see my question?

colinl avatar Nov 11 '25 10:11 colinl

@colinl Apologies Colin. I've been offshore chasing wallabies.

I've set up a 'complete' node triggered by the 'file input' node and it doesn't appear to output anything, either when any of the files have completed uploading or when all of them have.

pest-tech avatar Nov 12 '25 10:11 pest-tech

That is unfortunate. That might be a good solution to this issue. It would need someone with more knowledge than myself to implement it.

colinl avatar Nov 12 '25 11:11 colinl

It's not the end of the world Colin. I've just implemented a trigger node with a five second delay as the files I'm using with this flow aren't particularly large. It's safe for the flow to assume all of the file have uploaded after five seconds of nothing happening and it continues with the process.

Thanks anyway.

pest-tech avatar Nov 14 '25 13:11 pest-tech