I have been searching for a way to have downloadable file, such as an IES file, download right off the page rather than opening in another tab or the same tab.
I just want the suer to be able to download a copy rather than it just open.
I've seen put it in a Zip folder but is there any other way to do it?
I am not sure if there is any other way apart from the one suggested here - How do place a file for download from our server? which is to include some PHP and server side codes.
However, probably any of our expert contributors can shed their knowledge here is this can be achieved in the much simple way than messing with codes.
Use the download attribute inside your <a> tag.
<a href="files/abc.pdf" download>
<a href="/images/abc.jpeg" download>
The download attribute specifies that the target will be downloaded when a user clicks on the hyperlink.
This attribute is only used if the href attribute is set.
The value of the attribute will be the name of the downloaded file.
You will need to manually add this attribute by editing the page html.
Thanks and Regards