Opening Files in the Browser with SharePoint

A change in SharePoint 2010 is how it handles browser file permissions which results in how files are opened when they’re selected. A common problem is clicking on a PDF file and seeing the browser Save dialog instead of launching the Adobe reader.

There is a setting called Browser File Handling in each Web Application (under General Settings). By default it is set to strict which causes additional HTTP headers to be injected which blocks the opening of PDF and other files. Switching the option to permissive will allow things to function like they did in SharePoint 2007.

This is web application wide so you’ll need to do it for each web app in your farm. Here’s the dialog and the setting.

clip_image002

Hope that helps!

Published Sunday, September 18, 2011 7:35 AM by Bil Simser
Filed under:

Comments

# re: Opening Files in the Browser with SharePoint

Friday, September 23, 2011 8:40 AM by Anders Rask

The default is there for good reasons tho, so think it through before you disable this security feature.

For example PDF is not opened in browser because malicious PDF's could execute javascript kode against your system (for example using Client Object Model) using your credentials!

A much better solution is to selectively set the allowed mimetypes (preferebly not PDF!) on each web application using for example PowerShell:

$app = Get-SPWebApplication http://myWebApp

$app.AllowedInlineDownloadedMimeTypes.add("test/111")

$app.Update()

Read more on Maurice's blog

www.bluedoglimited.com/.../Post.aspx

Leave a Comment

(required) 
(required) 
(optional)
(required)