Download A File

  • Thread starter Thread starter JCO
  • Start date Start date
J

JCO

How can I make the download work with the click of the button.
I don't want the file to open (at which the user does a "save as").

I want the user to click the button then I want the Windows download option
to display.
Can this be done with FP2003?
If not, can it be done with a script file that gets executed?
If so, what whould that look like?
 
Import that file as a .zip file. I believe I've also heard that you can work
with your webhost to force a download but the .zip option is the easiest.
 
You can't really control how the file will open. Being able to script this
is a security violation and would let people create links that could open a
potentially virus or trojan infected file. To avoid the file being opened
(which provides the save/open dialog) automatically you have to use a file
format that the browser doesn't understand how to open. A .zip file is
excellent as the browser typically doesn't know how to open and display the
data inside the browser.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
Thanks

Mark Fitzpatrick said:
You can't really control how the file will open. Being able to script this
is a security violation and would let people create links that could open a
potentially virus or trojan infected file. To avoid the file being opened
(which provides the save/open dialog) automatically you have to use a file
format that the browser doesn't understand how to open. A .zip file is
excellent as the browser typically doesn't know how to open and display the
data inside the browser.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top