I have following code as below in html file that uses asp.net. If the file is any other than the image file, it downloads automatically. But if the file is image, it opens it in tab and then we have to manually download it. How can I automate this process without prompting user to do so manually? And the values of URL and Filename come from database.
<a href="${URL}" download="${FileName}">
<img
src="../Images/Download.png"
title="Click here to download the attachment."
/>
</a>