views:

15

answers:

1

I want to include link to download file in my html-page like this

<a href="file_folder/myfile.exe">MyFile</a>

but when I click to my link I can see binary code of my file in browser instead redirect to download file. How I can fix it without change settings of my web-server?

+2  A: 

You can't. The only way is to change the sent MIME type on the web server. application/octet-stream would be a good choice.

RoToRa