This is the ESP-SPIFFS-Web-Server example for esp-arduino 8266/ESP32/S2/S3/2C3/C6. For the ESP32-C6 you will need the Arduino Release v3.0.7. but release 3.0.7 will not work well on the ESP32-S3 and ESP32-C6
You can find a link the to Youtube https://youtu.be/SGOuzqJMnVM
Youtube It is based on the work that Mohammed Rezwanul Islam has done.