Right now Im creating a website that gets the href from another page that contains all of our data. however instead of downloading the .dat file when I click the link, it just opens it in the current tab or a new tab as plain text.
this is the line of code that I am using
<a href='https://www.[I dont want to put the actual web address]/$namehref' download>$size</a>
$namehref is just the name of the file that is to be downloaded.
this worked when we had a .tar file but doesnt want to work for files that can be open and read within the webpage itself.