Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Can Apache be configured to force a document 'Open' on browser?

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?

2 Answers

Relevance
  • IT Pro
    Lv 6
    1 decade ago
    Favorite Answer
  • 1 decade ago

    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.

Still have questions? Get your answers by asking now.