luci/modules/luci-base/luasrc/view
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
..
cbi luci-base: Make default for FileUpload 'safe' 2015-12-15 20:36:17 -05:00
csrftoken.htm luci-base: add support for POST-only actions with CSRF token check 2015-10-06 15:56:35 +02:00
error404.htm Globally convert headline anchors into name attributes. 2015-10-06 13:30:33 +02:00
error500.htm Globally convert headline anchors into name attributes. 2015-10-06 13:30:33 +02:00
footer.htm Update my email addresses in the license headers 2015-01-16 23:49:44 +01:00
header.htm Update my email addresses in the license headers 2015-01-16 23:49:44 +01:00
indexer.htm Update my email addresses in the license headers 2015-01-16 23:49:44 +01:00
sysauth.htm Globally convert headline anchors into name attributes. 2015-10-06 13:30:33 +02:00