Dashboard 2.0 File Input Node

Hello,

I need to upload a file from the client to a server running on a Raspberry Pi 5. I found the File Input node in Dashboard 2.0. It has a nice file picker interface that sees files on the client, exactly what I want.

Unfortunately, I have not been able to make it work for me. The firmware file is a binary bit file for an FPGA that is about 2.9MB in size. I can browse the file and hit Upload but the interface never returns. I can upload smaller files several hundred KB in size and it comes back right away, saying the file has been uploaded. Is there a file size limit on this node?

The other thing is I'm not sure about is how to use the output of the File Input node. It looks like it uploads the file into a buffer and delivers that buffer to the output. How would I access that data in a javascript function node?

From the docs: File Upload | Node-RED Dashboard 2.0

Check what value you have set.

OK, that was the problem. The buffer size was not set at all. I added the text below to the settings.js file and now I can upload the 2.9MB .bit files.

dashboard: {
    maxHttpBufferSize: 1e8 // size in bytes, example: 100 MB
}