Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AnchorElement download attribute does not work #87

Open
fvisticot opened this issue Oct 9, 2023 · 3 comments
Open

AnchorElement download attribute does not work #87

fvisticot opened this issue Oct 9, 2023 · 3 comments

Comments

@fvisticot
Copy link

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
Copy link
Author

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

@shrijanRegmi
Copy link

I'm having the same issue.

@fvisticot
Copy link
Author

Any update or feedback ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants