LuCI - OpenWrt Configuration Interface
Find a file
Daniel Dickinson b130ca554f lib-nixio / luci-base: Fix for reading csrf token prevents file upload
The call to http.formvalue in order to read the csrf token causes
_parse_input to be triggered *before* controllers and cbi maps have
been built.  This results in the failure of file uploads because
the file handler is not yet in place when _parse_input gets called,
and it is in _parse_input that POST data is parsed (including files).

To fix this we add the ability to write file fields to temporary
files (using mkstemp and unlink in nixio.file) and use this to
store file data until the filehandler is registered, with a
fallback to reading the file data into memory.

Once the filehandler callback gets registered we iterate
though all previously parsed (saved) files and copy the
data to the file handler, and then close the temporary
file (which finally removes because we unlinked after
creating the file, but didn't close the file so unlink
was deferred).

Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
2015-12-15 13:12:29 -05:00
applications validation: Add option ipv4only option to host and hostport datatypes 2015-12-15 13:12:10 -05:00
build build/makedocs.sh: handle relative output directories 2015-09-02 09:39:24 +02:00
collections collections/luci: depend on luci-proto-ipv6 if IPV6 is enabled 2015-05-06 16:00:33 +02:00
contrib/package Merge pull request #461 from marcel-sch/patch-1 2015-12-04 20:04:55 +01:00
documentation luci-base: fix uci documentation issue (#538) 2015-11-16 12:37:23 +01:00
libs lib-nixio / luci-base: Fix for reading csrf token prevents file upload 2015-12-15 13:12:29 -05:00
modules lib-nixio / luci-base: Fix for reading csrf token prevents file upload 2015-12-15 13:12:29 -05:00
protocols validation: Add option ipv4only option to host and hostport datatypes 2015-12-15 13:12:10 -05:00
themes Merge pull request #522 from LuttyYang/master 2015-10-24 09:33:42 +03:00
.buildpath * new project: ff-luci - Freifunk Lua Configuration Interface 2008-03-02 21:52:58 +00:00
.cproject More C-Functions (luci.cutil.instanceof, luci.cutil.pcdata) 2008-11-20 19:22:05 +00:00
.gitignore Update .gitignore 2015-04-20 10:08:23 +02:00
.project LuCI Core C-Rewrite: First steps 2008-11-19 23:02:36 +00:00
CONTRIBUTING.md CONTRIBUTING.md: Add advice on pull requests 2015-09-29 11:25:09 +03:00
LICENSE * new project: ff-luci - Freifunk Lua Configuration Interface 2008-03-02 21:52:58 +00:00
luci.mk luci.mk: correct SK language name to Slovak 2015-10-13 10:13:50 +03:00
NOTICE Update my email addresses in the license headers 2015-01-16 23:49:44 +01:00
README.md Add link to API reference 2015-10-27 13:24:09 +01:00
THANKYOU * luci: replace all "OpenWRT" occurences with "OpenWrt" 2008-10-27 15:19:58 +00:00

OpenWrt luci feed

Description

This is the OpenWrt "luci"-feed containing LuCI - OpenWrt Configuration Interface.

Usage

This feed is enabled by default. Your feeds.conf.default (or feeds.conf) should contain a line like:

src-git luci https://github.com/openwrt/luci.git

To install all its package definitions, run:

./scripts/feeds update luci
./scripts/feeds install -a -p luci

API Reference

You can browse the generated API documentation directly on Github.

License

See LICENSE file.

Package Guidelines

See CONTRIBUTING.md file.