I am using your basic ESP32 web server in Arduino and Platformio. I am using LittleFS as the eeprom file server. My problem is serving files that are specified in the html as :
`
and using :
`server.serveStatic("/", LittleFS, "/");
in the CPP code, and the code to serve the actual page as:
`server.on("/", HTTP_GET, [](AsyncWebServerRequest *request)
{
Serial.println("Sending /home.html");
request->send(LittleFS, "/home.html", "text/html", false);
});
The actual page gets served ok, but when the client asks for the referenced pages, The web code gives me errors like:
[ 10376][E][vfs_api.cpp:105] open(): /littlefs/home.js does not exist, no permits for creation
The files concerned are all at the same level in the Platformio "data" folder.
Your website example used LittleFS in what I thought was exactly this way. Can you suggest something I have overlooked please.
Regards,
Ron