[OpenWrt-Devel] LuCI FileUpload in network section

Jakub Jančo kubco2 at gmail.com
Fri Jan 22 06:53:57 EST 2016


Hello,

I'm trying to upload file in interface configuration, but it always
save file as value in config file. Is there something like switch to
upload original file?

I added this option to
/usr/lib/lua/luci/model/cbi/admin_network/proto_newproto.lua
---------------
op_tls_auth = section:taboption( "security", FileUpload, "tls_auth",
"Key file" )
---------------


And after Save or Save and apply


/etc/config/network
----------------
config interface 'test'
    option proto 'newproto'
    option tls_auth 'line1 filecontent
line2 filecontent
'
----------------

Thanks for help.

--
S pozdravom Jakub Janco
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list