• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 192
  • Last Modified:

downloading a file

I want to have a downloadable file on a page, where the visitor can click to download it. Is this easily done?
  • 2
1 Solution
It's easy to set up, but not necessarily easy to guarantee.

You can create an HTML link to your file, e.g., <A HREF="myfile.xxx">Download myfile</a>

If the file is not associated with any particular program, the user will be offered the option to download it.  The trick is that many standard file types are associated with programs which will allow them to open in the browser.

One simple solution is to zip the files.  Zips are always downloaded (or at least always offered the option to download).  However, that requires that your clients have an unzip program.

Files such as .doc, .xls, .pdf are frequently "viewable" inside the browser, which would, I think, defeat your purpose.

Can you be a bit more specific as to what you need to achieve?

ADenneyAuthor Commented:
Specificaly, I do want to let them download a zip file, with the possibility of including Winzip or whatever if they do not hve such.
If you set up a simple link (<a href=>) to a .zip file, the client will be offered the chance to download, by default.  That's the way it works on my machine (but I have Winzip).

You might have to set up a separate link to Winzip.  There's probably a download page on www.winzip.com, and you can set up another link on the page to that one.  It's what people do with the Adobe Acrobat reader all the time (although that one is free).


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.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now