luci-base: extend FileUpload; create DirectoryPicker
authorPaul Donald <redacted>
Sun, 6 Jul 2025 02:04:28 +0000 (04:04 +0200)
committerPaul Donald <redacted>
Sun, 18 Jan 2026 17:05:21 +0000 (18:05 +0100)
commit2012b36215f2dfd41291a0c9354d60f063e8ec13
treeaff3a91adaf0642e141e6e61570bf4a75ef9783c
parent31949c1b43642a83203d1180c5bd25e2aa4f3a3d
luci-base: extend FileUpload; create DirectoryPicker

FileUpload was extended to accommodate the new features, since
it has nearly everything already. Create a DirectoryPicker
convenience wrapper.

Additions are:
-directory creation (dialogue); set directory_create to true
-directory select mode (instead of file); set directory_select to true

Also fix a bug in the breadcrumb generation which produced:

/foo » » bar

for /foo/bar if root_directory is not '/', and another bug that
merged links together when navigating upward again using the
breadcrumbs.

Signed-off-by: Paul Donald <redacted>
modules/luci-base/htdocs/luci-static/resources/form.js
modules/luci-base/htdocs/luci-static/resources/ui.js
git clone https://git.99rst.org/PROJECT