|
|
 |
RE: FN-FORUM: Stop PDF's automatically opening
date posted 31st March 2008 15:17
You could also try:
ForceType application/octet-stream
Header set Content-Disposition attachment
in a .htaccess file for the directory with the PDFs in it (using Apache).
I did hear that Internet Explorer doesn't cope with the force-download
requests like this one and the one below very well. I've not tested this
myself though. The save as... solution would work even if force-download
directives don't.
>
> if yr php based try force-download with header()
>
> (im sure there is a M$ equiv but i dont know it)=20
>
> header('Content-type: application/force-download');
>
> read here:
>
> http://www.php.net/header=20
>
> Kind regards=20
>
>
> Brendan Oliver
>
> whilst we try to ensure that messages and attachments are virus free, =
> we cannot accept responsibility for situations where this is not the =
> case.
>
> =20
>
> -----Original Message-----
> From: [EMAIL REMOVED] [EMAIL REMOVED] Behalf Of Brian
> Lycett
> Sent: 31 March 2008 16:15
> To: Brendan Oliver
> Subject: Re: FN-FORUM: Stop PDF's automatically opening
>
>
>
> This behaviour is controlled by the browser. The user would need to
> configure their settings. I'm not sure if you can configure the acrobat
> plugin to prompt the user, though of course the user can always
> right-click and select "save link as..."
>
>
>>
>> Hi,
>>
>> Anyone know any code or java script that will stop a PDF automatically
>> opening or at least give the user the option to download or open? =
> Rather
>> then just opening automatically.
>>
>> Kind Regards
>> Ashley Harvey
>> 07967 791738
>> www.adhwebcreations.co.uk
>>
>>
>>
>>
>> --
>> Freelancers, contractors earn more with Prosperity4
>> Call 0870 870 4414 or visit www.prosperity4.com
>> and benefit from Inland Revenue approved expenses today.
>>
>> To advertise here: http://www.freelancers.net/advertising.html
>>
>>=20
> --=20
> Freelancers, contractors earn more with Prosperity4
> Call 0870 870 4414 or visit www.prosperity4.com
> and benefit from Inland Revenue approved expenses today.
>
> To advertise here: http://www.freelancers.net/advertising.html
>
>
> --
> Freelancers, contractors earn more with Prosperity4
> Call 0870 870 4414 or visit www.prosperity4.com
> and benefit from Inland Revenue approved expenses today.
>
> To advertise here: http://www.freelancers.net/advertising.html
>
> |
 |
|