Access Denied When Upload SWF File to SharePoint 2010

I have a user with with “Contribute” permission. But when he need to upload an SWF file to a document library, he got “Access Denied” while he can upload another file????

Solution

The solution is in PowerShell….

Open the PowerShell

write the follwoing commands:

$webApp=Get-SPWebApplication <YOUR WEB APPLICATION URL>
$webApp.WebFileExtensions

This will print the following extensions:
ascx
asmx
aspx
jar
mast
swf
xap
xsf
xsn

“swf” is there…

To remove this file extension use the follwoing CmdLet.
$webApp.WebFileExtensions.Remove(“swf”)

or you can add a new extension if you have security requirements, like this:
$webApp.WebFileExtensions.Add(“js”)

For more details: Microsoft Support

Advertisements