| 2719 | } |
| 2720 | |
| 2721 | void AmsWebServer::configFileUpload() { |
| 2722 | if(!checkSecurity(1)) |
| 2723 | return; |
| 2724 | |
| 2725 | HTTPUpload& upload = uploadFile(FILE_CFG); |
| 2726 | if(upload.status == UPLOAD_FILE_END) { |
| 2727 | performRestart = true; |
| 2728 | snprintf_P(buf, BufferSize, RESPONSE_JSON, |
| 2729 | "true", |
| 2730 | "", |
| 2731 | performRestart ? "true" : "false" |
| 2732 | ); |
| 2733 | server.setContentLength(strlen(buf)); |
| 2734 | server.send(200, MIME_JSON, buf); |
| 2735 | } |
| 2736 | } |
| 2737 | |
| 2738 | void AmsWebServer::redirectToMain() { |
| 2739 | String context; |
nothing calls this directly
no outgoing calls
no test coverage detected