I have a CSV file on my server. If a user clicks on a link it should download, but instead it opens up in my browser window.
My code looks as follows
If you are doing it with your application itself... I hope this code helps.
In href -- you have to add download_file.php along with your URL:
/* Here is the Download.php file to force download stuff */