meino.cra...@gmx.de:

> there is one feature of forefox, which bugs me:
> On the same site (www.blenderswap.com) I click
> to files to download. One is a *.blend, the
> other one is a *.rar.
> When I click the *.blend, the file gets downloaded
> and stored on my hd at once -> bad!
> When I click the *.rar, the file gets NOT downloaded
> at once and instead I am offered a dialog, which
> asks what to do.
> 
> I looked into Preferences->Application, which lists
> filetypes and the according action and DONT find
> an entry for *.blend files.

What happens depends on the Content-Type with which the server delivers
the file. Here is an example.

http://www.triffids.de/pub/blend/

Both files are identical text files, but hm.blend1 comes with text/plain
and hm.blend2 comes with text/hafi. The last is unknown *g*, so it will
be asked what to do. text/plain is well known and the browser will
display its content.

> Where can I change the action selected by Firefox
> which gets executed for a certain filetype else?

Look at the Content-Type of your *.blend. One way to do this is with
HEAD which is part of libwww-perl.

hafi@i5 ~ $ HEAD http://www.triffids.de/pub/blend/hm.blend2
200 OK
Connection: close
Date: Mon, 13 Jun 2011 05:21:15 GMT
Accept-Ranges: bytes
ETag: "942355-b-4a590cf7e03b1"
Server: Apache
Content-Length: 11
Content-Type: text/hafi
Last-Modified: Mon, 13 Jun 2011 05:01:21 GMT
Client-Date: Mon, 13 Jun 2011 05:21:15 GMT
Client-Peer: 85.13.136.212:80
Client-Response-Num: 1

Hartmut
-- 
Usenet-ABC-Wiki http://www.usenet-abc.de/wiki/
Von Usern fuer User  :-)


Reply via email to