I have a page with dynamically generated SVG. I call the save file dialog using data:image/octet-stream
. The client would not recognise the URL as an inline-able resource, and prompt a download dialog.
var dataImageUri = "data:image/octet-stream," + encodeURIComponent(svg);
window.open(dataImageUri);
But then the file is saved without an extension. Expansion and name need to register manually. Can I ask how that extension and name for the file?