show how to do file downloads using dynamic anchor attribute
bahmutov opened this issue · comments
Gleb Bahmutov commented
Probably should work right out of the box
var a = document.createElement('a');
a.setAttribute('href', dataUri);
a.setAttribute('download', filename);
var aj = $(a);
aj.appendTo('body');
aj[0].click();
aj.remove();