Creating a web site to download a file

Hello,

As a home user, I want to allow a user to click on a web link that downloads a .zip file.

I have no web server experience, so just need to basic steps (and tools) to complete this task, will work on the details later.

I can Remote in to my PC, so there is outside access, if this helps at all.

My basic plan is to have a PC with Windows 2003 on it as my web server.

LVL 1
Alaska CowboyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sam PanwarSr. Server AdministratorCommented:
Hi,

1. Import the files to be downloaded into your current open web, then create a link to each from a
image you have created or text you have entered, just as you would link to a page.

2. Depending on your web host, you may not be able to upload any .exe files, and depending on the
type of templates, when a user click on the link, they may open directly in the associated
application, the best solution is to make all the files into .zip file using Windows XP Compressed
zip file function or use WinZip.

If you want to download the any file from the browser then you have to set MIMe type of that file extension from the IIS

1.      Start > Program >Administrator tool > IIS
2.      In IIS console here is option + website > click on +
3.      You can add your web site here. right click > Properties
4. there is option Mime type
5. Set zip mime type
4.      Click on Apply.

f you are using IIS then you have declare the Mime type for csv in IIS file check it You can define the zip
http://blogs.msdn.com/david.wang/archive/2005/10/17/HOWT1. Get rid of your MIME Type for .EXE. The correct


 You can create a "download" button if you wish in your favourite image
editor.

If you want to use a form button for a download link, in FP 2003 there is a
behaviour to make a hyperlink from a form button, or try this code (does the
samething as the FP2003 behaviour)

This came from http://javascript.internet.com

<!-- TWO STEPS TO INSTALL BUTTON LINK:

  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the last code into the BODY of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Original:  Sven David Hildebrandt (shild...@online.no) -->
<!-- Web Site:  http://home.hia.no/~sdhild99 -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function goToURL() { window.location = "<<site>>"; }
//  End -->
</script>

</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document  -->

<BODY>

<form>
<input type=button value="New JavaScripts" onClick="goToURL()">
</form>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Alaska CowboyAuthor Commented:
Ok, I appreciate the info. Will give it a try. Thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.