<% local t = require("luci.tools.webadmin") local v = self:cfgvalue(section) local s = v and nixio.fs.stat(v) -%> <%+cbi/valueheader%> <% if s then %> <%:Uploaded File%> (<%=t.byte_format(s.size)%>) <% if self.unsafeupload then %> /> " alt="<%:Replace entry%>" title="<%:Replace entry%>" src="<%=resource%>/cbi/reload.gif" /> <% end %> <% end %> <% if not self.unsafeupload then %> /> <% end %> <% if (not s) or (s and not self.unsafeupload) then %> /> <% end %> /> <%+cbi/valuefooter%>