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@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to