Remove Blocked File Types in SharePoint

9 Jan

You can remove the blocked file types in SharePoint programmatically by accessing a collection on an SPWebApplication object.

Collection&lt;<span class="kwrd">string</span>&gt; be = webApplication.BlockedFileExtensions;
<span class="kwrd">if</span> (be.Contains(<span class="str">&quot;dll&quot;</span>)) be.Remove(<span class="str">&quot;dll&quot;</span>);
Tweet about this on TwitterShare on Google+Share on FacebookShare on RedditEmail this to someoneShare on LinkedInShare on StumbleUpon

Leave a Reply

Your email address will not be published. Required fields are marked *