You can use the HTML download attribute to specify that the target will be detect the correct file extension and add it to the file (.img, .pdf, .txt, .html, etc.). Download file when clicking on the link (instead of navigating to the file): detect the correct file extension and add it to the file (.img, .pdf, .txt, .html, etc.). For the button you can do
. 31 Jan 2018 The semantics inherent in HTML elements tell us what we're supposed For complicated sites, this attribute allows us to create downloads that "%Y" }}-tax-return.pdf"> Download your {{ 'now' | date: "%Y" }} Tax Return