OpenWrt Forum Archive

Topic: Help: upload files to router by luci

The content of this topic has been archived on 19 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Dear friends,

I hope I can freely upload files to the router by luci. (Storage location : /tmp/upload/ ),
how should I write this page? (Path : /usr/lib/lua/luci/model/cbi/upload.lua )

Thank you very much.

Tony
2014.05.05

Maybe take a look at modules/admin-full/luasrc/view/admin_system/flashops.htm?

Zajec wrote:

Maybe take a look at modules/admin-full/luasrc/view/admin_system/flashops.htm?

Whether you can directly use lua language?

hxzhyx wrote:
Zajec wrote:

Maybe take a look at modules/admin-full/luasrc/view/admin_system/flashops.htm?

Whether you can directly use lua language?

No idea what you are asking about.

Zajec wrote:
hxzhyx wrote:
Zajec wrote:

Maybe take a look at modules/admin-full/luasrc/view/admin_system/flashops.htm?

Whether you can directly use lua language?

No idea what you are asking about.

I want to create a new page x.lua, can read and write the configuration file x(/etc/config/x ), any file can be uploaded to the specified directory /tmp/upload

Can you help me write a complete code for me?
Thank you.

(Last edited by hxzhyx on 5 May 2014, 08:32)

The discussion might have continued from here.