universal_html
universal_html copied to clipboard
AnchorElement download attribute does not work
I need to download a file with a filename different from the origin path. url path is 'aaabbbcccddd' (or GUID) and I need to save the file with the name "image.jpg"
I used this code:
AnchorElement anchorElement = AnchorElement(href: url);
anchorElement.download = "image.jpg";
anchorElement.click();
But the file is save with the path name not "image.jpg"
Is it a bug ?
any update on this ? I did not find the answer.
I'm having the same issue.