dint-dev / universal_html

Cross-platform 'dart:html'.
https://pub.dev/packages/universal_html
Apache License 2.0
201 stars 60 forks source link

AnchorElement download attribute does not work #87

Open fvisticot opened 11 months ago

fvisticot commented 11 months ago

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 commented 10 months ago

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

shrijanRegmi commented 7 months ago

I'm having the same issue.

fvisticot commented 4 months ago

Any update or feedback ?