Downloading a jpg and gif files
1 posts in topic
Flat View  Flat View

Posted By:   Aleksandar_Cajic
Posted On:   Monday, March 11, 2002 06:26 AM

I have a problem to download a gif or jpg files from server.
I have link on jpg file and the problem is to stop browser to open a file automaticly, the point is to get a dialog window to save a file on local hard disk.

Re: Downloading a jpg and gif files

Posted By:   Randhir_B  
Posted On:   Thursday, March 14, 2002 01:07 PM

You can not automatically stop the browser and open/download the file on the client drive. This is against the security policy. Having a HREF onto JPEG will also not help. JavaScript probably does not offer a solution.
You have to write server side code in whatever language to download the file explicitly.
About | Sitemap | Contact