× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

How to download a file with HTML5.

Jon Tewksbury
Feb 12, 2015
<p>You can trigger a download by using the new HTML5 download attribute.</p> <pre><code>&lt;a href="path_to_file" download="proposed_file_name"&gt;Download&lt;/a&gt; </code></pre> <p>path_to_file is either an absolute or relative path, proposed_file_name the filename to save to (can be blank, then defaults to the actual filename).</p> <p>This tip was originally posted on <a href="http://stackoverflow.com/questions/24523347/How%20to%20download%20file%20using%20jquery?/24523414">Stack Overflow</a>.</p>
comments powered by Disqus