Downloading
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
Desktop
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
by ebob
Click Here
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:
Click Here for ZIP
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:
Click Here
This gets even trickier for "normal users" who now have to rename the file themselves.
The choice depends on your target audience.
by stgeorge1970
by ebob
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.
by stgeorge1970
by ebob
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.
by stgeorge1970
by stgeorge1970
This discussion is closed to new replies.
Sort by Trending