diff options
author | Daniel Dickinson <openwrt@daniel.thecshore.com> | 2015-12-01 23:02:38 -0500 |
---|---|---|
committer | Daniel Dickinson <openwrt@daniel.thecshore.com> | 2015-12-15 20:36:17 -0500 |
commit | b475ec699d0c16c4ac7f4abb7680c7e6011428f4 (patch) | |
tree | e53abd09629fb55c5ed0a6cd3f1fe4ce53cd0df6 /modules/luci-base/luasrc/view/indexer.htm | |
parent | f25c4e07bc9642e0491d3a4ab3942a69545891e9 (diff) |
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>
Diffstat (limited to 'modules/luci-base/luasrc/view/indexer.htm')
0 files changed, 0 insertions, 0 deletions