I have a function in my web app that allows me to download a present image. What I would also like it to do is give me the opportunity to save this file under the name upon download.
My function is this:
function saveFile(){
var dataURL = canvas.toDataURL("image/png").replace("image/png", "image/octet-stream");
console.log(dataURL);
window.location.href = dataURL;
}
And how can I do to name this file? Thank u all!