06 October 2015

Making flash content (.swf files) work in Sharepoint 2010

If flash content (.swf) files are hosted on SharePoint 2010, they do not work by default.

The reason for this is that 'shockwave/flash' mime type is not enabled by default on SharePoint 2010.

To check if 'shockwave/flash' mime type is enabled or not on SharePoint site, perform following steps -

  • Open SharePoint power shell with admin privileges
  • Run following commands on power shell -
$webapp = Get-SPWebApplication "<SharePoint site URL>"
$webapp.AllowedInlineDownloadedMimeTypes
This will list all available mime types on SharePoint
  • Check if "application/x-shockwave-flash"exists in available mime types
  • If not, run the following commands - 
$webapp = Get-SPWebApplication "<SharePoint site URL>"
$webapp.AllowedInlineDownloadedMimeTypes.Add("application/x-shockwave-flash")
$webapp.Update()
  • Restart SharePoint app-pool or perform IIS Reset
Flash content should now work in SharePoint 2010.

No comments: