How to force fully download txt file on link?
Download file when clicking on the link (instead of navigating to the file): <a href=”https://stackoverflow.com/questions/21088376/test.txt” download>Click here</a> Download file and rename it to mytextdocument.txt: <a href=”https://stackoverflow.com/questions/21088376/test.txt” download=”mytextdocument”>Click here</a> The download attribute specifies that the target will be downloaded when a user clicks on the hyperlink. This attribute is only used if the href attribute is … Read more