Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By danbicks
#57119 Hi Martin,

Thanks for the code example, does your version simply display the spiffs file contents in a web browser?

I am looking for the option that starts downloading the file itself to the local PC. Does the header need to change in order to acheive this?

Thanks

Dans
User avatar
By danbicks
#57123
martinayotte wrote:Yes, the file is simply display as "text/html" in the browser.
To get a save dialog from the browser, simply change content type with the following :
Code: Select allwebserver.send(200, "application/octet-stream", "");


Martin,

Awesome as always, cheers buddy.

Dans