| 369 | } |
| 370 | |
| 371 | bool finishUploadTarget(File &file) { |
| 372 | if (!update) { |
| 373 | file.close(); |
| 374 | return true; |
| 375 | } |
| 376 | if (!launcherUpdateEnd()) { |
| 377 | displayRedStripe("Fail 376: " + String(launcherUpdateLastError())); |
| 378 | launcherDelayMs(3000); |
| 379 | return false; |
| 380 | } |
| 381 | lastInstalledApp = "WebUI File"; |
| 382 | saveIntoNVS(); |
| 383 | displayRedStripe("Restart your device"); |
| 384 | return true; |
| 385 | } |
| 386 | |
| 387 | bool streamMultipartUpload(httpd_req_t *req) { |
| 388 | if (!checkUserWebAuth(req)) return false; |
no test coverage detected