How the file is treated by Camino will depend on what the webserver at www.someplace.com will tell Camino that the file is using the content type. In your case the webserver probably doesn't know what a .dmg file is and decides to tell Camino a text/html file is coming over. This causes Camino (and Safari) to try to render it as html. You'll get a download thing if the server would tell Camino that the dmg file is some sort of format Camino knows it should download. I think the default action on unknown content types is to download it also.

I think that your problem is not in Camino or Safari, but on the host you are putting the .dmg file. That host should configure their webserver not to treat those files as text/html. What mime type it should use, I don't know exactly.


Marc Respass wrote:

Here's a follow up. I guess I was onto something though I don't know what. Both Camino and Safari actually *do* think my disk image is text which explains why they try to load it. If I option-click the link or right-click and Download Target..., I see that .html is appended to the file name. In Camino, when I get the save dialog, the file ends in .html. It's the actual disk image file though.

It makes me think there is something wrong with my link which looks exactly like this (names changed of course)

<a href="http://www.someplace.com/diskimages/MyDiskImage.dmg";>download</a>

Is there something I can put in an href to indicate that the file is a binary that should be downloaded?

Thanks
Marc

On Mar 19, 2005, at 5:33 PM, Marc Respass wrote:

I just had a problem that I didn't think I had. I clicked the link to a disk image (.dmg) file and Camino attempted to load it as if it were a web page. Luckily, this file is "only" 1.7 MB. I just continually hit command-period until the page finally stopped loading but I was dismayed. Why would it think that a disk image is text? Why would it think that it's something that can be displayed? I guess I just don't understand mime types or something because this is truly baffling to me. In Mac OS 9, we had the ability to set handling for various file types. That's not around anymore. Anyone have any ideas why this is happening? It happens in Safari too but worse because Safari totally locks up.

I'm running Camino build 2005031608

Marc

_______________________________________________
Camino mailing list
[email protected]
http://mozdev.org/mailman/listinfo/camino


_______________________________________________
Camino mailing list
[email protected]
http://mozdev.org/mailman/listinfo/camino


--
Ruurd - runs Mac OS X 10.2.8, uses Vim
Sun Certified Programmer for the Java 2 Platform 1.4

_______________________________________________
Camino mailing list
[email protected]
http://mozdev.org/mailman/listinfo/camino

Reply via email to