EspFileManager is a library for creating a web-based file management system on the ESP32 using the Async WebServer library. The library provides a responsive interface that allows users to upload, download, and delete files stored on the ESP32's filesystem.
- File Management: Upload, download, and delete files via a web interface.
- Responsive Design: Interface adapts to different screen sizes, providing a smooth experience on desktops, tablets, and smartphones.
- Navigate to the library manager (Sketch > Include Library > Manage Libraries).
- Search for "EspFileManager" and install it.
- Add the library to your
platformio.ini:lib_deps = https://github.com/arslan437/EspFileManager.git
```cpp
#include <AsyncTCP.h>
#include <ESPAsyncWebServer.h>
#include <SPI.h>
#include <SD.h>
#include <WiFi.h>
#include <EspFileManager.h>
#define MICROSD_SPI_SS_PIN 5
#define ST_SSID "XXXXXXXXXXX"
#define ST_PASS "XXXXXXXXXXX"
AsyncWebServer server(80);
EspFileManager FileManager;
void setup()
{
Serial.begin(115200);
WiFi.mode(WIFI_STA);
WiFi.begin(ST_SSID, ST_PASS);
while (WiFi.status() != WL_CONNECTED);
{
Serial.print(".");
delay(50);
}
Serial.print("Connected to wifi... \nIP: ");
Serial.println(WiFi.localIP());
FileManager.initSDCard(&SD, MICROSD_SPI_SS_PIN);
FileManager.setServer(&server);
server.begin();
}
void loop()
{
}
Creating meaningful content is my passion, but it’s also a labor of love that requires time, energy, and often a bit of coffee to keep the creativity flowing! By buying me a cup of coffee, you're not just fueling my caffeine habit—you're helping me continue to create, innovate, and bring fresh ideas to life. Your support means the world to me, and every contribution, big or small, makes a huge difference.
Contributions are welcome! Please feel free to submit a Pull Request on GitHub.
This library is licensed under the AGPL-3.0 License. See LICENSE for more information.