luci/modules/luci-base/luasrc/view/cbi/upload.htm
Jo-Philipp Wich 3f93650901 luci-base: use cgi-io and rpcd-mod-file to handle file upload and browsing
Remove the old server side support for file browsing and file uploading
and switch to a client side widget instead which uses XMLHTTPRequests to
upload files via cgi-io and RPC calls for file listing and status queries.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00

14 lines
357 B
HTML

<%+cbi/valueheader%>
<div<%=attr("data-ui-widget", luci.util.serialize_json({
"FileUpload", self:cfgvalue(section) or self.default, {
id = cbid,
name = cbid,
show_hidden = self.show_hidden,
enable_remove = self.enable_remove,
enable_upload = self.enable_upload,
root_directory = "/" --self.root_directory
}
}))%>></div>
<%+cbi/valuefooter%>