Code Monkey home page Code Monkey logo

espxwebflmgr's Introduction

If you are looking for esp32_sd_file_manager, click here https://github.com/jameszah/ESPxWebFlMgr/tree/master/esp32_sd_file_manager

ESPxWebFlMgr

  • Manage your files with a simple web based interface.
  • Supports Arduino ESP8266 and Arduino ESP32.
  • Has local editing, renaming, downloading and compression.

this is it

Usage

  • Click on the filename to download the file.
  • D is delete, R is rename, E is in-place-edit, C is Web-compatible GZIP compress.
  • Drop one or multiple file onto the drop zone to upload.
  • Click on "Download all files" got get the entire file system content as one big ZIP file.

"build in web page"

The file manager comes in two flavors. This is the default modus: just use it. Everything works automatically.

"external web page"

For those who need to save about 10k code space the web page can also be moved into the file system space. Copy the content of the folder filemanager on the device and comment out the line #define fileManagerServerStaticsInternally

File System: LittleFS or SPIFFS

ESPxWebFlMgr should be full LittleFS by now. Report any SPIFFS zombies.

ESPxWebFlMgr is currently in a transition phase from SPIFFS to LittleFS. Current status: ESP8266 is default LitteFS with fallback to SPIFFS, ESP32 SPIFFS only (I assume it is easy to switch, but I didn't do any tests...)

Build in GZIPPER

The GZIPPER can compress the files in you devices file system into gzip-web-compatible files.

To use the "on the fly" GZIPPER you need to upload the file "gzipper.js" from "gzip files" folder. Click the "C"-button to compress a file. If the compression factor meets your expectations delete the source file.

System files

Because the file system is feature limited there is no real concept for separating "internal files" from "web server allowed files".

My solution of choice is that all internal files start with "/." (slash dot). Your idea might differ.

Use .setSysFileStartPattern(String) to define a pattern that identifies internal files.

Use .setViewSysFiles(bool) to choose whether the file manager shows these files or not.

The Editor

It is basic. It works. You. will. create. backups. before. editing!

Examples

Example basic (ESP8266 only)

It shows the use at its simplest.

Intended use: putting configuration files on your ESP8266 and download data files without any ado.

Example basiconoff (ESP8266 only)

Some sort of real life demand: Turn off the file manager after 180 seconds.

Example basicwsagzip (ESP8266 and ESP32)

More real life:

  • implements a file based web server (cut and paste ready on its own sketch tab)
  • allows serving gzipped files

this is it

WARNING: The webserver has no access control. It servers everything from your ESP8266 file system.

Put the sample files from "simplewebpage" for a simple web page on the server.

Stuff I used

espxwebflmgr's People

Contributors

holgerlembke avatar jameszah avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.