diff --git a/wled00/data/settings_leds.htm b/wled00/data/settings_leds.htm index c52f22b3..0c892c6e 100644 --- a/wled00/data/settings_leds.htm +++ b/wled00/data/settings_leds.htm @@ -369,7 +369,7 @@ ${i+1}: } function uploadFile(name) { var req = new XMLHttpRequest(); - req.addEventListener('load', function(){showToast(this.responseText)}); + req.addEventListener('load', function(){showToast(this.responseText,this.status >= 400)}); req.addEventListener('error', function(e){showToast(e.stack,true);}); req.open("POST", "/upload"); var formData = new FormData(); diff --git a/wled00/html_settings.h b/wled00/html_settings.h index e8c456d0..05b93196 100644 --- a/wled00/html_settings.h +++ b/wled00/html_settings.h @@ -77,7 +77,7 @@ onclick="B()">Back // Autogenerated from wled00/data/settings_leds.htm, do not edit!! const char PAGE_settings_leds[] PROGMEM = R"=====(