Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Creating a web site to download a file

Posted on 2006-03-31
Medium Priority
Last Modified: 2010-04-20

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.

Question by:Alaska Cowboy
LVL 18

Accepted Solution

Sam Panwar earned 300 total points
ID: 16347757

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

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


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


<!-- 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 -->


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


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

Author Comment

by:Alaska Cowboy
ID: 16349208
Ok, I appreciate the info. Will give it a try. Thanks.

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
What You Need to Know when Searching for a Webhost Provider
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question