English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

We are giving users the ability to open protected Adobe Acrobat files. This requires that they OPEN a security stub file. Problem is, the browser (testing with Firefox) gives them the option whether to Open or Save. If they save, it botches things up.

How can we tell the browser to always Open the file and not give the ability to Save?

2006-10-21 14:38:02 · 2 answers · asked by speakeasy 6 in Computers & Internet Programming & Design

2 answers

http://elouai.com/force-download.php

2006-10-21 14:43:53 · answer #1 · answered by IT Pro 6 · 0 0

You could have the stub file be executible (i.e. a PHP file) and have that process execute the required permissions activity.

If authentication fails, set the content-type with a header and pass through the PDF; if authentication fails, simply present an HTML error.

The link will look the same from the perspective of the viewer.

2006-10-21 21:54:51 · answer #2 · answered by poorcocoboiboi 6 · 0 0

fedest.com, questions and answers