A web page question!
Discussion
Normally, the browser interprets the link, and decides what to do:
in most cases, a compressed *.zip-file will be offered for download via a dialog.
Alternatively, you could supply a MIME-type, so the browser knows the file type:
Source:
<p><a href="einsundeins.xls" type="application/msexcel"><b>einsundeins.xls</b></a>
</p>
in most cases, a compressed *.zip-file will be offered for download via a dialog.
Alternatively, you could supply a MIME-type, so the browser knows the file type:
Source:
<p><a href="einsundeins.xls" type="application/msexcel"><b>einsundeins.xls</b></a>
</p>
As far as I understand, it depends on the browser's settings what happens to a file then.
My browser's (Mozilla 1.1) preferences allow to set what happens
When starting a download
a) Open the download manager
b) Open a progress dialog
c) Don't open anything
For openening files with the browser, one can specify them in the browser in the tab "Helper Applications"
When it is an unknown file, it automatically asks if I want to
a) Open with...
b) Save as...
IIRC, the savest way would be the zip-compression to solve the problem in html.
My browser's (Mozilla 1.1) preferences allow to set what happens
When starting a download
a) Open the download manager
b) Open a progress dialog
c) Don't open anything
For openening files with the browser, one can specify them in the browser in the tab "Helper Applications"
When it is an unknown file, it automatically asks if I want to
a) Open with...
b) Save as...
IIRC, the savest way would be the zip-compression to solve the problem in html.
If the browser has the ability (or thinks it has the ability based on the file extension) then it will try to display it - often seen with .doc and .xls when opened in IE, also with .pdf's when you have acrobat reader installed.
I think the only sure fire way is to include the file without an extension and hope the user is able to follow an instruction such as "rename the file." once saved to disk.
Cheers
Paul
edited to say: Just seen your last post - sorry I think you have no chance with a jpeg - but by not having the .jpg extension it should work as described above or use an image type that browsers don't recognise but other image viewers can - but this can cause other problems which I'm sure you've already guessed at.
>> Edited by gopher on Sunday 19th January 16:39
I think the only sure fire way is to include the file without an extension and hope the user is able to follow an instruction such as "rename the file
Cheers
Paul
edited to say: Just seen your last post - sorry I think you have no chance with a jpeg - but by not having the .jpg extension it should work as described above or use an image type that browsers don't recognise but other image viewers can - but this can cause other problems which I'm sure you've already guessed at.
>> Edited by gopher on Sunday 19th January 16:39
It's a *.jpg then.
If you visit the press areas on websites, they often offer images of the products in high resolutions.
The way, they make them downloadable is either zip'ed (as mentioned above), or they offer *.tif - images, which are not readable by common browsers, and offer better quality @ bigger file size.
Here is an example of a company which offers images as zip'ed *.tif.
Gassing Station | General Gassing [Archive] | Top of Page | What's New | My Stuff



