Howto: Allow wrinting into web dir

Hi,
how can I configure uhttpd to allow clients to write into a specific directory ?
The client needs to write some data via POST request.

Thanks for a hint !

Make a CGI script. It is not configuration, it is application.

Also...

If this is your router (and not some random appliance behind the router), this is an extremely bad idea for a number of reasons -- most critical is security. Secondary would be the consumption of space, which is a real concern if you're using an embedded/all-in-one type device (i.e. a "plastic box" router).

If you're using a system with relatively massive storage (like an SBC or x86 device), you would be much better off with a docker container running a web server (with the CGI script or other mechanism to enable writing) that is a unique and containerized environment as to ensure that the router's admin web server and underlying system is not exposed to potential harm from this writable directory.

1 Like