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>
14 lines
357 B
HTML
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%>
|