km
km copied to clipboard
File Browser (new)
Thanks for this great flow, but the download doesn't work. I'm relatively new to NodeRed und doesn't understand the part to do the download.
If I see it right, a box/window should be opened like after pressing delete? But nothing occur. No window, and no download to my windows machine. I use Firefox.
Any idea?
Can you please check the output of the "Execute zip" node? Maybe something goes wrong when it tries to compress the files into a zip file. If that fails, nothing happens on the screen.
Thank you for respons and your help :)
I used the "download file" button. there is no zip after this. I inserted two debug outputs at "Handle file actions" with this result:
If I use "Download all", I get the confirmation box. Than I see: "data_20230610145100.zip" and "Zip file containing all files in this folder has been generated. Click on Download above." Nothing happens after click "Download". The debug-output in this case:
`10.6.2023, 14:52:15node: Handle file actionsfunction : (warn) "file: [object Object]"
10.6.2023, 14:52:16node: Handle file actionsfunction : (warn) "template: "`
That is interesting. I am wondering if this is something which is not supported in Firefox? Do you have Chrome installed? Can you check if it works there? Because everything looks OK for me.
I don't have Chrome, but Opera, which is based on Chrome - I think!? There it is different but also doesn't work. If I press download than a new tab will be opende with this adress:
http://192.168.178.51:1880/download?filename=%2Fhome%2Fpi%2Fupdate_ei23.log
But nothing more happens. The Tab-title show: loading and an endless circle is moving to show the progress.
I can try to install Chrome on an older PC, or can also try the preInstalled Edge, I never used till now. But best is to try Chrome, so you can see, it it is a problem of the browser. Give me some time please.
(btw a download from my Raspi should work in general, because WinSCP works fine.)
Delete also doesn't work (Firefox and Opera). I get the following message in Node-Red:
11.6.2023, 10:53:42[node: Delete file](http://192.168.178.39:1880/#) msg : string[82] "failed to delete file: Error: ENOENT: no such file or directory, unlink 'filename'"
For the download issue. The http://192.168.178.51:1880/download?filename=%2Fhome%2Fpi%2Fupdate_ei23.log
link looks OK. I don't think there is an issue with the link generation, but the download is not working for some reason. Do you get any errors in the debug?
For the delete issue: are you sure you selected a file first to be deleted?