esp32-asyncwebserver-fileupload-example
esp32-asyncwebserver-fileupload-example copied to clipboard
Reboot button does not work
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
Can you please share the code for changing SPIFFS to SD.
@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.