Exploring Plain-Text Data URIs And The Anchor Download Attribute In JavaScript

added by JavaScript Kicks
6/5/2018 10:30:25 PM

578 Views

Ben Nadel discovers that Data URI payloads do not have to be Base64-encoded when dealing with plain-text content. And, that this feature can provide a very easy way to prompt custom file downloads in JavaScript, using the anchor "download" attribute, without any server-side interaction.


0 comments