luci-base: ui.js FileUpload: option to enable Download button
authorSergey Ponomarev <stokito@gmail.com>
Thu, 21 Sep 2023 19:48:54 +0000 (22:48 +0300)
committerSergey Ponomarev <stokito@gmail.com>
Tue, 9 Apr 2024 07:43:35 +0000 (10:43 +0300)
commit4b771b3df0c39baed5e0904ad66e460691194636
treef45655fda2e70f19e37fc4d0c33b056360a9765e
parent5d2d52802229608d65ec973a1984194b8baa60fa
luci-base: ui.js FileUpload: option to enable Download button

Allow downloading from a file browser.
The Download button is located near to Delete.
It's shown only for files: folders or /dev/ devices can't be downloaded.
The downloading is made via fs.read_direct() which internally calls cgi-download.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
modules/luci-base/htdocs/luci-static/resources/form.js
modules/luci-base/htdocs/luci-static/resources/ui.js