universal_html icon indicating copy to clipboard operation
universal_html copied to clipboard

AnchorElement download attribute does not work

Open fvisticot opened this issue 10 months ago • 3 comments

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 ?

fvisticot avatar Oct 09 '23 18:10 fvisticot

any update on this ? I did not find the answer.

fvisticot avatar Nov 04 '23 13:11 fvisticot

I'm having the same issue.

shrijanRegmi avatar Jan 21 '24 12:01 shrijanRegmi