Giter Site home page Giter Site logo

esp32-8266-file-download's Introduction

ESP32-8266-File-Download

Using HTTP and an HTML interface to download files from an ESP32/ESP8266

  1. Download all files to a sketch folder.

  2. Edit the Network tab and add in your SSID and PASSWORD, more if you have them.

  3. Choose your IP address, currently it is fixed to 192.168.0.150

  4. You can edit the logical name 'fileserver' to your requirements then access the device with http://fileserver.local but only if your browser has mDNS support otherwise use http://192.168.0.150/

  5. NOTE: the Directory command is not included in this release, this comes later.

  6. To test the download place a known file on the SD-Card for trial purposes.

NOTES:

The ESP32 is not reliable when using SD Cards, please ensure you know how to connect the SPI bus to the SD-Card if not using an MH-ET Live ESP32 board and a Wemos SD-Card Shield. Although pull-ups are enabled, you may need to add an external 4k7 pull-up too on the MISO line.

esp32-8266-file-download's People

Contributors

g6ejd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

esp32-8266-file-download's Issues

Maximum file size for download

Hello. I plan to store the logs on the sd card and then download them via wifi. I am currently testing your example. I can download a 2MB text file. Downloading a 6MB text file causes the web server to stop working. I need to reboot my device. I created a issue to ask a question. What is the maximum size of a text file that can be downloaded via Wi-Fi and how is it determined? In addition, I could not download files in PNG format at all. Haven't studied the code carefully yet.

Empty file

When I connect to the ESP8266 directly without a router, the page loads, click download, enter the file name, but the file is downloaded empty. The file definitely exists, it is not empty. What could be the reason?

File on SPIFFS empty on file download

void SD_file_download(String filename) {
File download = SPIFFS.open("/" + filename, "w");

Should the above by "'r" rather than "w"? I tried your program, but found the file on the ESP was empty (0 bytes) after doing the download.

I notice, 'download' and 'upload' are confusing terms when dealing with ESPs. Most google searches show up okay (up/down-load). but the ESP as ESP-server or ESP-client is unclear as to context for the most part.

In this case its ESP-server to download to client (client<-svr).

Just thought I'd let you know.

Convert to Spiff instead of SD

Hi , I like your solution very much. I was thinking that maybe downloading from the Spiff in ESP is also a function which is possible with your solution. Have you thought of changing your code to support also SPiff ?

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.