by XDK
4. February 2015 12:27
Exception:
"Error: Access Denied" appears. User cannot upload the .SWF file".
Explanation:
Users with contributor permissions are prevented from uploading files with extensions ASPX,MASTER,XAP,SWF,JAR,ASMX,ASCX,XSN and XSF
Solution:
1. Provide "design" permission to the users trying to upload the restricted extensions
2. These restricted extensions are listed in the WebFileExtensions property of the WebApplication. The WebFileExtensions property can be programatically edited as follows
PowerShell script to list the WebFileExtensions property
$WebApp = Get-SPWebApplication https://<SharePoint Site Collection URL>/
$Extensions = $WebApp.WebFileExtensions
$Extensions | ForEach-Object {Write-Host $_}
PowerShell script to remove the .swf restriction from the WebFileExtensions property
$WebApp = Get-SPWebApplication http://<SharePoint Site Collection URL>/
$Extensions = $WebApp.WebFileExtensions
$Ext = $Extensions.Remove("swf")
$WebApp.Update()
edfa1c08-1a03-4b32-8a0a-482293f2f982|0|.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04
Tags: SharePoint
SharePoint