Browser file handling - Opening files in SharePoint without prompt for download


After migration of one of our training site from Moss 2007 to SharePoint 2010, users reported that they are not able to open the video files(flash file) in the browser. Instead they are getting prompt to download the file.

Upon investigation we came to know that this is one of the security features of SharePoint 2010. Basically, SharePoint  does not allow all files to open by default in browser. This setting is done at the web application level. To change is setting :

  1. Go to Central Administration -> Application management -> Manage Web Applications
  2. Select the web application where you want to change this setting
  3. In the web application ribbon, open General Settings
  4. Look for Browser file handling section. You will find 2 options here
    • Permissive - This allows all files to open in browser
    • Strict - Allows only select files to open in browser
You can set this property using Powershell script also. The script is given at the link.

However using permissive settings might introduce a security risk to your farm. Hence it is advisable to only add particular file type in under your strict option. To add only a particular file type, you will need to use powershell script as that option is not available through UI.

The link to add SWF file under strict option, please use the powershell script given in this link.





 

 

No comments:

Post a Comment