-->
Page 1 of 1

Web server: make SPIFFS file available for download

PostPosted: Fri Apr 06, 2018 6:14 am
by otto34
Hello!

I've managed to successfully implement a SPIFFS file system on the ESP8266-01, which will be used to log data. I'd like to make that file available for download by the user through a simple button in the website. Any advice on how to set up this web server?

PS.: I'm aware of the "SDWebServer" example, but I don't have enough pins available to connect an SD card.

All the best,

Re: Web server: make SPIFFS file available for download

PostPosted: Sun Apr 08, 2018 1:15 am
by McChubby007
There's the Fsbrowser example (I think it's called that), which provides that feature, so you can see the mechanism of how to do it there.

Re: Web server: make SPIFFS file available for download

PostPosted: Thu Apr 12, 2018 6:19 pm
by otto34
McChubby007 wrote:There's the Fsbrowser example (I think it's called that), which provides that feature, so you can see the mechanism of how to do it there.


Hello McChubby007. Thanks for the reply, but I haven't found the built-in example quite easy to understand. Instead, I've found an excellent reference in GitHub: https://github.com/G6EJD/ESP32-8266-File-Download. It was only necessary to change the file source: from SD Card to the internal file system.

Re: Web server: make SPIFFS file available for download

PostPosted: Sat Sep 29, 2018 1:24 am
by bilalhq
Hey otto34, Can you giude me more as to how you made this happen? I'm actually working on logging of energy readings and want a similar option to get the files downloaded through a webserver, but so far haven't been able to find a solution.