Skip to content

Uploading config.json via HTTP #364

Answered by fvanroie
markusressel asked this question in Q&A
Discussion options

You must be logged in to vote

The config.json is read into memory at boot and overwritten from the running configuration at reboot.
There is no code to handle uploads of config.json like that. It is only used to temporarily store the settings between reboots. It wasn't intended to be changed on-the-fly. Use the api calls in the web server to emulate the Configuration forms.

In the future this file will likely disappear from the filesystem. The settings should be moved to the NVS partition to prevent reading/writing it like that. The FTP server could now read sensitive contents of config.json, which shouldn't be possible...

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@markusressel
Comment options

@fvanroie
Comment options

Answer selected by markusressel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #363 on July 22, 2022 21:50.