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>); webApplication.Update();