usecase: when use clicks on "Download File", an external file associated with it should get downloaded to user's matchine.
I tried : 1.
<a href={downloadfileUrl} download={downloadfileUrl}>
<div className="filename" data-testid="download-link-filename">
Download file
</div>
</a>
<Link
// href={downloadfileUrl}
target="_blank"
to={{ pathname: {downloadfileUrl} }}
download
>
Download Template
</Link>
Tried above with many combinations. It's not working, I can see "Download file" hyperlink on UI but it does not download the file when I click on it. Can someone suggest any solutions