luci/modules/luci-base/luasrc/view/cbi
Daniel Dickinson b475ec699d luci-base: Make default for FileUpload 'safe'
Some files and pointers to files are not safe to remove without a replacement
file and config pointing to the file.  For instance for uhttpd application in
the works, removing the certificate or key config or files without having the
replacements in places renders the WeUI inaccessible.

The only other place where FileUpload is currently used is for wifi certificates
for which the 'safe' handling is also preferred.  Therefore make the default for
the FileUpload widget the safe handling and add a property self.unsafeupload that
allows for the old unsafe handling should it prove useful in some case.

Also allow to specify a file already on router instead of uploading a file.

Signed-off By: Daniel Dickinson <openwrt@daniel.thecshore.com>
2015-12-15 20:36:17 -05:00
..
apply_xhr.htm Globally replace luci.dispatcher.build_url(...) with url(...) invocations 2015-10-07 19:07:36 +02:00
browser.htm Globally replace luci.dispatcher.build_url(...) with url(...) invocations 2015-10-07 19:07:36 +02:00
button.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
cell_valuefooter.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
cell_valueheader.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
compound.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
delegator.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
dvalue.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
dynlist.htm luci-base: add support for DynamicList with FileBrowser 2015-11-03 17:07:45 +08:00
error.htm Globally convert headline anchors into name attributes. 2015-10-06 13:30:33 +02:00
filebrowser.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
firewall_zoneforwards.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
firewall_zonelist.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
footer.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
full_valuefooter.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
full_valueheader.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
fvalue.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
header.htm luci-base: protect CBI forms with CSRF tokens 2015-10-06 18:54:35 +02:00
lvalue.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
map.htm Globally convert headline anchors into name attributes. 2015-10-06 13:30:33 +02:00
mvalue.htm applications: firewall: Add time and date for rules and redirects 2015-12-14 23:26:33 -05:00
network_ifacelist.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
network_netinfo.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
network_netlist.htm Workaround: saved administration site user and pass may appear on the Wireless configuration page, replacing the WPA key. 2015-07-27 11:37:09 +02:00
nsection.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
nullsection.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
simpleform.htm luci-base: protect simpleforms with CSRF tokens 2015-10-07 12:24:58 +02:00
tabcontainer.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
tabmenu.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
tblsection.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
tsection.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
tvalue.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
ucisection.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
upload.htm luci-base: Make default for FileUpload 'safe' 2015-12-15 20:36:17 -05:00
value.htm luci-base: fix escaping lua string to js repr 2015-12-02 20:56:08 +08:00
valuefooter.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
valueheader.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00