MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / finishUploadTarget

Function finishUploadTarget

src/webInterface.cpp:371–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371bool 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
387bool streamMultipartUpload(httpd_req_t *req) {
388 if (!checkUserWebAuth(req)) return false;

Callers 1

streamMultipartUploadFunction · 0.85

Calls 6

launcherUpdateEndFunction · 0.85
displayRedStripeFunction · 0.85
launcherUpdateLastErrorFunction · 0.85
launcherDelayMsFunction · 0.85
saveIntoNVSFunction · 0.85
closeMethod · 0.80

Tested by

no test coverage detected