esp32-asyncwebserver-fileupload-example icon indicating copy to clipboard operation
esp32-asyncwebserver-fileupload-example copied to clipboard

Reboot button does not work

Open Frank-Bemelman opened this issue 2 years ago • 2 comments

First, thank you very much for this great example. It works quite well, and fiited well into my project involving modifying an old jukebox, rewiring the old buttons and finally serve audio files to a sonos box. I did not use the SPIFF but added an SD card for more storage.

I used the more fancy 2nd example and noticed the reboot button does not work at all.

In webpages.h Line 29: document.getElementById("statusdetails").innerHTML = "Invoking Reboot ...";

Changed into: document.getElementById("details").innerHTML = "Invoking Reboot ...";

BTW, the conversion to SD card was easy. First I changed all SPIFFS references to SD. The only thing with SD.exists() and SD.remove() is that it wants a "/" in front of the filename, so I made some minor changes for that in webserver.ino

Thanks again, very happy with this!

Cheers, Frank

Frank-Bemelman avatar Jun 13 '22 09:06 Frank-Bemelman

Can you please share the code for changing SPIFFS to SD.

Jacker1505 avatar Jul 16 '22 01:07 Jacker1505

@Frank-Bemelman thank you for the feedback, I will make the change shortly.

Are you able to provide a code example for the change to SD card, I can include it in the examples to help others - or even link to your code hosted somewhere else. I don't have an SD card setup to test with.

smford avatar Sep 25 '22 10:09 smford