Remove Blocked File Types in SharePoint

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>);
webApplication.Update();
Share This Post!Tweet about this on TwitterShare on Google+Share on FacebookShare on RedditEmail this to someoneShare on LinkedIn

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>