Majorly useful http://davidwalsh.name/download-attribute
Place the
download
attribute on a link…<!-- will download as "expenses.pdf" --> <a href="/files/adlafjlxjewfasd89asd8f.pdf" download="expenses.pdf">Download Your Expense Report</a>…and when the user clicks the link, the
download
attribute appears in the save dialog instead of the garbled mess that was there before. In this case, the file will be downloaded asexpenses.pdf
. Thedownload
attribute also triggers a force download, something that I used to do on the server side with PHP.
Thank-you for that post!
More good information on this new attribute can be found here