Skip to content

arslan437/EspFileManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EspFileManager

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.

Features

  • 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.

Installation

Arduino IDE

  1. Navigate to the library manager (Sketch > Include Library > Manage Libraries).
  2. Search for "EspFileManager" and install it.

PlatformIO

  1. Add the library to your platformio.ini:
    lib_deps =
        https://github.com/arslan437/EspFileManager.git
    

Usage

```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() 
{

}

Support

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.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request on GitHub.

License

This library is licensed under the AGPL-3.0 License. See LICENSE for more information.

About

EspFileManager is a comprehensive library for creating a web-based file management system on the ESP32 using the Async WebServer library. It supports file uploads, downloads and deletions. Library includes a responsive and futuristic front-end interface, allowing easy interaction with files stored on the ESP32's filesystem via a web browser

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors