I have a file on my webserver.
I want this file to download when the user clicks the link, not open it in the browser window...
Can I force it to download??
/Smirre
Printable View
I have a file on my webserver.
I want this file to download when the user clicks the link, not open it in the browser window...
Can I force it to download??
/Smirre
easiest thing to do is just zip it.
I would perfer not to zip it...
/Smirre
waht is the file extension?
if it is a known file extension on the users computer you don't have a choice. but if the file us unknown then they would be able to.
Its a PDF file. So it opens in the browser. I was thinking if there was any way to "activate" the save target as on the right click menu when the users click on the link.
/Smirre
you don't have any control over the file extension per say the user downloading it. if they have acrobat reader installed it will open it and not download it. all you can do is say on your page is "right click and save target" or right click "Save As for NS.
Try getting around it...
Instead of just linking straight to a file create a new server side script, ASP or PHP would be good. Then create some code to the rename the file to a unknown ext, download it, and rename it back afterwards.
I know its a bit sloppy but it works.