I am new to web development and I ran into an abnormal problem with CSV files.
I have a link to download a CSV file:
<a href="http://mysite.com/public/sample.csv">Sample CSV file</a>
On my local machine, it gives a dialog box for loading - this is correct, and that is what I want.
When I upload the same code to my web server, it opens the csv file as a web page in the same browser tab. I donβt want this, I need a dialog box for the download option !
Can someone tell me what I am doing wrong or what I need to do?
source share