Permissive mode in browser file handling

From time to time it happens that you want to open specific files directly from SharePoint and not want to download them… I know I know Microsoft files are working just fine but for example if you want to handle pdf documents.

For that you have a setting on the Centraladministration site:

CentralAdmin –> Application management –> Manage Webapplications –> General settings

Here you find the setting for the browser file handling.



You can set it to permissive and now you should be able to open the document directly.

If you want to set it for all your webapplications you can use this script:

Add-pssnapin "Microsoft.SharePoint.Powershell"
$webapps = Get-SPWebApplication
foreach ($webapp in $webapps)
    $webapp.BrowserFileHandling = "permissive"


BUT hold on… continue reading!!! There is more…


Setting the permissive mode could be a security risk and the better way to configure the aimed behavior is not to set it for just all applications (using permissive mode) but for specific applications using so called “Allowed Inline Downloaded Mime Types”.

You can use this script to set it for example for pdf documents:

Add-pssnapin "Microsoft.SharePoint.Powershell"
$webapps = Get-SPWebApplication
foreach ($webapp in $webapps)

From my perspective this should be the way to go, until you really need to enable the permissive mode for an webapplication.


2 responses to “Permissive mode in browser file handling”

  1. Daniel says :


    I also found that without permissive file handling enabled … I could not access any of the server variables in my DataView Web Parts etc.

    Without it these are blank or set the initial default value..

    I wonder setting some or all lAlowedInlineDownloadedMimeTypes will also enable me to access my server variables


Trackbacks / Pingbacks

  1. Add CSS3 to IE6 and higher | Chris' Blog - 03/29/2013

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: