ESPAsyncWebServer
ESPAsyncWebServer copied to clipboard
ESP_AsyncFSBrowser Editor not working properly
I am trying to implement the code in the example ESP_AsyncFSBrowser. I am using the code exactly as in the example except for changing the SSID and password. When opening the editor it works an loads the text found in index.htm; However when reloading the file or opening any other file, it does not load. From the browser network monitor I noticed I am getting 404 message when the page tries to call any file. The file can be loaded if opened directly in browser. Any one else has the same issue because I cannot figure out what is causing the problem??
Thanks
I managed to solve the problem by adding a / in front of the file names when the list of files is sent to the editor. This was done by changing the line 465 in the SPIFFSEditor.cpp file from output += "","name":""; to output += "","name":"/"; The file names in the list now have a / and the get method for loading files was corrected. With this change the editor works correctly.
I don't know id anyone else could replicated the problem so maybe the files can be updated on git?