ESP32 AsyncWebServer SPIFFS problem loading page I can load spiff docs, but I get a 404.  Wireless works, IP addressing works and I can load other examples successfully.  This simple image load ino is giving me fits!
#include &lt;WiFi.h&gt;
#include &lt;AsyncTCP.h&gt;
#include &lt;SPIFFS.h&gt;
#include &lt;ESPAsyncWebServer.h&gt;
const char *ssid = &quot;x&quot;;
const char *password =  &quot;123456789&quot;;
IPAddress staticIP(10,0,0,1); //ESP static ip
IPAddress gateway(0,0,0,0);   //IP Address of your WiFi Router (Gateway)
IPAddress subnet(255, 255, 255, 0);  //Subnet mask

AsyncWebServer server(80);

void setup() {
  Serial.begin(115200);
  WiFi.softAP(ssid, password);

server.on(&quot;/&quot;, HTTP_GET, [](AsyncWebServerRequest *request)
{request-&gt;send(SPIFFS, &quot;/index.htm&quot;, &quot;text/html&quot;);});
     
server.on(&quot;/image.png&quot;, HTTP_GET, [](AsyncWebServerRequest *request)
{request-&gt;send(SPIFFS, &quot;/image.png&quot;, &quot;image/png&quot;);});

server.begin();

}//END setup

void loop() 
{
}

&lt;!DOCTYPE HTML&gt;
&lt;html&gt;
&lt;head&gt;
     &lt;meta charset='UTF-8'&gt;
&lt;/head&gt;
&lt;body&gt;
     &lt;img src=&quot;image.png&quot; alt=&quot; image goes here&quot;&gt;
&lt;/body&gt;
&lt;/html&gt;
I don't have an ESP32 to test with.  Though, I tried to make your code run on an ESP8266, but it's a bit of an effort to validate what is ultimately a wild guess on my part.
And that is: perhaps you have some uppercase letters in your filename such that &quot;/image.png&quot; does not match perfectly and furthermore maybe SPIFFS is case sensitive.  That is, your file could be named Image.png or IMAGE.png and that might matter.
UPDATE:
In my exploring this on the ESP8266, I'd forgotten to execute SPIFFS.begin().  And I see no counterpart to it in your code.
At least one example of ESPAsyncWebServer I've seen does call SPIFFS.begin()
I found that the filenames are case sensitive, again at least on the ESP8266; so that can be a source of problems.
Also checked that if the SPIFFS size is changed through menu selections, I did indeed need to reupload the SPIFFS image.
I know these are different systems; in fact the code I'm using to test doesn't compile for ESP32, but I suspect a lot of the code is shared, and so maybe the problems are as well.