Microdot - send file to download
Microdot - send file to download
Hi, I'm trying to use `microdot` library to build a little web app on a ESP32. I'm newer in HTML coding, I would send a text file stored in the micro to the browser used by the user for download it. If I use the `send_file` function, the browser receive the file and automatically display it. I would try to open a pop-up window on the browser to download it as an attachment. Anyone is familiar with `microdot` and HTML? Thanks a lot for your support!
Re: Microdot - send file to download
Hello,
You need to add extra http "Content-Disposition" header
Don't forget to add "Content-Type" header.
See : https://developer.mozilla.org/en-US/doc ... isposition
You need to add extra http "Content-Disposition" header
Don't forget to add "Content-Type" header.
See : https://developer.mozilla.org/en-US/doc ... isposition