General discussion

Locked

Downloading

By stgeorge1970 ·
how do i make an item (.exe, .html etc)downloadable from my web site. i have used MS Office 2000 to create my site but am unable to make any item downloadable.

any help would be gratefully appreciated

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Downloading

by eBob In reply to Downloading

<a href="myfile.extension">Click Here</a>

But, the "problem" is that the user's browser will look at the path in the href and decide if it (the browser) can handle the file. If the extension is ".htm" or ".html" then the browser thinks the file is an HTML file (surprise!) and will display it. Same with Text file, GIFs, JPEGs, PDFs, etc.

I think what you want is that when the user clicks on a link, the browser throws up the "Save As" dialogue.

The simplest technique is to format the file such that browser is not likely to have an interpeter for the type. For example, simply ZIPping the file will do nicely, Then the link becomes:

<a href="myfile.zip">Click Here for ZIP</a>

and the user will download the ZIP file.

Of course,they'll have to be bright enough to UNZIP it themselves.

Alternatively, you can simply give the file an extension which browsers are likely to not recognise. For example, to prepare an HTML file for download, simply rename it "myfile.ht_" and thelink becomes:

<a href="myfile.ht_">Click Here</a>

This gets even trickier for "normal users" who now have to rename the file themselves.

The choice depends on your target audience.

Collapse -

Downloading

by stgeorge1970 In reply to Downloading

The question was auto-closed by TechRepublic

Collapse -

Downloading

by eBob In reply to Downloading

The "other answer" is that if anybody else can see the HTML files in your site then the files are successfully downloading!

How is this so? In order for the user's browser to render the HTML file, their system must first download it, then it getspassed to their browser for display (and associated processing).

Proof? They wil lhave a copy of the HTML files in their PC's cache.

Collapse -

Downloading

by stgeorge1970 In reply to Downloading

The question was auto-closed by TechRepublic

Collapse -

Downloading

by eBob In reply to Downloading

The "other answer" is that if anybody else can see the HTML files in your site then the files are successfully downloading!

How is this so? In order for the user's browser to render the HTML file, their system must first download it, then it getspassed to their browser for display (and associated processing).

Proof? They will have a copy of the HTML files in their PC's cache.

Collapse -

Downloading

by stgeorge1970 In reply to Downloading

The question was auto-closed by TechRepublic

Collapse -

Downloading

by stgeorge1970 In reply to Downloading

This question was auto closed due to inactivity

Back to Desktop Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums