Skip to content

AnchorElement download attribute does not work #87

@fvisticot

Description

@fvisticot

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions