[Project_owners] forcing different Content-type for downloads

Simon Wunderlin simon at wunderlin.net
Thu Dec 30 16:06:18 EST 2004


salut Didier,

Didier Ernotte schrieb:
> The A html tag support the "type" attribute (see
> http://www.w3.org/TR/REC-html40/struct/links.html#adef-type-A). This
> type is the content-type of the link, but I don't know if this
> attribute is supported in FF.

ok thanx for the hint. i tried that and the server's response header
"Content-Type: application/x-xpinstall" seem to take predence.

/me *shrugs*

Cheers,
Simon

> --- Simon Wunderlin <simon at wunderlin.net> wrote:
> 
> 
>>Hi all,
>>
>>i am preparing an extension for N|Vu. it is most likely that users
>>will
>>download the xpi with moz/FF and get prompted for install when they
>>click the link (the extesion won't work in the browser).
>>
>>is it possible to force another Content-type for downloads with an
>>xpi
>>extension (for example application/octetstream or
>>application/unknown)
>>so that the user will get a "save as ..." dialog rather than an
>>install
>>dialog ?
>>
>>Thanks in advance and regards,
>>-- 
>>Simon
>>
>>PS: i know how to change the Content-type for files in the www dir,
>>this
>>is not what i am looking for (would like to do this for files in the
>>download dir).
>>
>>PPS: no i don't like fries ... i'd just want a coke with it if that's
>>ok?
>>_______________________________________________
>>Project_owners mailing list
>>Project_owners at mozdev.org
>>http://mozdev.org/mailman/listinfo/project_owners
>>
> 
> 
> 
> 
> 	
> 		
> __________________________________ 
> Do you Yahoo!? 
> Yahoo! Mail - You care about security. So do we. 
> http://promotions.yahoo.com/new_mail
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners


-- 
Simon


More information about the Project_owners mailing list