- Using
downloadattribute for<a>
<a href="path_to_file" download="proposed_file_name">Download</a>Pros: fast, don't need program from server (the link doesn't need have Content-Disposition: attachment is set from server)
Cons: Partial support by browsers. check http://caniuse.com/#feat=download.
<button>