perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Harrison" <c...@austin.rr.com>
Subject RE: Mime Type
Date Tue, 13 Sep 2005 16:40:23 GMT
So what's the best mime-type then to use ?


Paul

-----Original Message-----
From: Tom Schindl [mailto:tomAtLinux@gmx.at] 
Sent: Tuesday, September 13, 2005 11:32 AM
To: Paul Harrison
Cc: modperl@perl.apache.org
Subject: Re: Mime Type

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

As already said that's nothing specific to mod_perl but when using
mod_perl you set the mime-type yourself using:

$r->content_type('text/plain');

If you want the user to have get a popup you have to use a content-type
the browser has no mapping for.

Tom

Paul Harrison wrote:
> Is there a way I can change the mine type in apache so when a user
> clicks on a mp3 link it would pop_up the save window instead of playing
> it ?
> 
> Maybe trick the browser into thinking the mp3 file is a zip file so it
> will pop_up a save as window, so the user can save it to their desktop.
> 
>  
> 
>  
> 
>  
> 
> Cure
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iD8DBQFDJv8UkVPeOFLgZFIRAnzbAJ9GBgR9eXtc7oRCwBLdcGsQ/IRKiwCfWR0Q
3myMfAbiJSoPyryAvxnxjqo=
=LwdO
-----END PGP SIGNATURE-----


Mime
View raw message