Daniel Marino
9 October 2024
Resolving JavaScript File Download Issues from ESP32 Webserver
This article explains why a straight HTML link to the same file may succeed, but a JavaScript download from an ESP32 web server may fail. It offers several ways to solve this problem, such as utilizing XMLHttpRequest, fetch(), and a straightforward HTML download link. These techniques take care of important issues like MIME types and CORS policies and guarantee a more seamless file download experience.