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

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s