Actually, I'm not very familiar with Esp32 but I hope some of these links can help you
ESP32. WiFi. WebServer. Upload file from App to ESP32. SdCard reader. LittleFS - #6 by Juan_Antonio
ESP32. WiFi. WebServer. LED on/off. Static IP. Soft Access Point - #10 by Juan_Antonio