Here is the html:
<!DOCTYPE HTML>
<html>
<body>
<a href = "img/test.txt" download> Download </a>
</body>
</html>
This identifies the file that I am trying to download, but instead of downloading it like I expect the "download" attribute to do, it just redirects to the txt file within the browser. What am I doing wrong here?
This is how you download the file, (React env, as you mentioned in the chat)