Comments on: ESP32 Web Server using LittleFS Filesystem (serve files from filesystem) https://randomnerdtutorials.com/esp32-web-server-littlefs/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Sat, 28 Mar 2026 19:36:31 +0000 hourly 1 https://wordpress.org/?v=6.8.5 By: Sara Santos https://randomnerdtutorials.com/esp32-web-server-littlefs/#comment-1173602 Sat, 28 Mar 2026 19:36:31 +0000 https://randomnerdtutorials.com/?p=170074#comment-1173602 In reply to Thierry.

Hi.
You also need to add the lines to serve the image to the client.

For example:
server.on(“/sun”, HTTP_GET, [](AsyncWebServerRequest *request){
request->send(LittleFS, “/sun.png”, “image/jpg”);
});

This tutorial explains how to do it: https://randomnerdtutorials.com/display-images-esp32-esp8266-web-server/
Check this section of the tutorial: “Option #2: Store the Image on the ESP32/ESP8266 LittleFS”

Regards,
Sara

]]>
By: Thierry https://randomnerdtutorials.com/esp32-web-server-littlefs/#comment-1173000 Thu, 26 Mar 2026 16:08:02 +0000 https://randomnerdtutorials.com/?p=170074#comment-1173000 Dear Sara and Rui, thank you very much for all your very very good tutorials, the best on the net.
Based on your sketch, I wanted to add a jpg image. I placed a jpg picture (330 kB) in the data folder. I changed the index.html , just by adding

in the body.
I use the ESP32-2432S028R and the partition 4MB with SPIFFS. The web page is shown but not the image !!! What did I do wrong ?
Thank you for your help ! Thierry

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-web-server-littlefs/#comment-1155939 Sun, 25 Jan 2026 14:51:45 +0000 https://randomnerdtutorials.com/?p=170074#comment-1155939 In reply to amsovar.

Hi.
Yes.
ElegantOTA allows you to do that: https://randomnerdtutorials.com/esp32-ota-elegantota-arduino/
Regards,
Sara

]]>
By: amsovar https://randomnerdtutorials.com/esp32-web-server-littlefs/#comment-1155453 Sat, 24 Jan 2026 13:02:20 +0000 https://randomnerdtutorials.com/?p=170074#comment-1155453 Hi, Sara, great tutorial.

If you need to change the webpages after ESP32 deployment, is there a way to transfer them remotely via wireless (using ElegantOTA, as you do with the sketch)?

Thanks

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-web-server-littlefs/#comment-1120857 Sat, 08 Nov 2025 17:42:36 +0000 https://randomnerdtutorials.com/?p=170074#comment-1120857 In reply to Andjé Le.

Hi.
You’re probably using the wrong libraries.
Use the ESPAsyncWebServer library by ESP32Async
And AsyncTCP library by ESP32 Async
Available to install via the Arduino Library Manager.

Delete any previous versions of the library.

Check section 3. Installing Libraries
To install the correct libraries for this project.

Regards,
Sara

]]>
By: Andjé Le https://randomnerdtutorials.com/esp32-web-server-littlefs/#comment-1120846 Sat, 08 Nov 2025 17:32:16 +0000 https://randomnerdtutorials.com/?p=170074#comment-1120846 Bonjour Hello, I’m using Arduino 2.3.6 and I’m trying to compile your program. Do you have an explanation? https://randomnerdtutorials.com/esp32-web-server-littlefs/
I’m getting this error. Do you have a solution?
Thank you.
c:\Users\allx\Documents\Arduino\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp: In function ‘bool getMD5(uint8_t*, uint16_t, char*)’:
c:\Users\allx\Documents\Arduino\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp:74:3: error: ‘mbedtls_md5_starts_ret’ was not declared in this scope; did you mean ‘mbedtls_md5_starts’?

74 | mbedtls_md5_starts_ret(&_ctx);
| ^~~~~~~~~~~~~~~~~~~~~~
| mbedtls_md5_starts
c:\Users\allx\Documents\Arduino\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp:75:3: error: ‘mbedtls_md5_update_ret’ was not declared in this scope; did you mean ‘mbedtls_md5_update’?
75 | mbedtls_md5_update_ret(&_ctx, data, len);
| ^~~~~~~~~~~~~~~~~~~~~~
| mbedtls_md5_update
c:\Users\allx\Documents\Arduino\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp:76:3: error: ‘mbedtls_md5_finish_ret’ was not declared in this scope; did you mean ‘mbedtls_md5_finish’?
76 | mbedtls_md5_finish_ret(&_ctx, _buf);
| ^~~~~~~~~~~~~~~~~~~~~~
| mbedtls_md5_finish
exit status 1

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-web-server-littlefs/#comment-1099943 Sat, 20 Sep 2025 18:33:21 +0000 https://randomnerdtutorials.com/?p=170074#comment-1099943 In reply to Ahmed.

Double check that you’re using the exact library versions by ESP32Async that we recommend.
Make sure that you don’t have other versions of the same libraries installed.

Regards,
Sara

]]>
By: Ahmed https://randomnerdtutorials.com/esp32-web-server-littlefs/#comment-1099247 Fri, 19 Sep 2025 12:42:41 +0000 https://randomnerdtutorials.com/?p=170074#comment-1099247 Hello, love the tutorial, i however keep getting errors when compiling that come from the source code of the ESPAsyncWebServer library, any idea on why ?

]]>
By: John https://randomnerdtutorials.com/esp32-web-server-littlefs/#comment-1076920 Fri, 01 Aug 2025 09:05:20 +0000 https://randomnerdtutorials.com/?p=170074#comment-1076920 Thanks for the guide Sara.

I have used the below line for a few years and it allows you to access the webserver pages from IP address that dont match the one the web browser is on, such as when using the MDNS address or the Station IP address.

wiFiServer.on(“/”, HTTP_GET, [](AsyncWebServerRequest request)
{AsyncWebServerResponse *response = request->beginResponse(LittleFS, “/index.htm”, String(), false);response->addHeader(“Access-Control-Allow-Origin”, “
“);request->send(response); });

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-web-server-littlefs/#comment-1076586 Thu, 31 Jul 2025 13:48:00 +0000 https://randomnerdtutorials.com/?p=170074#comment-1076586 In reply to Gary.

Great!
Thank you for your feedback.
Regards,
Sara

]]>