Download A File

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?
 
J

JL Amerson

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.
 
M

Mark Fitzpatrick

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
 
J

JCO

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
 
Top