Take the 2-minute tour ×

Is there any way to request the list of "Blocked File Types" from code?

Optional: And possibly add new items to the list.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You can get all the blocked file extensions using the SPWebApplication object and the BlockedFileExtensions property: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spwebapplication.blockedfileextensions.aspx

share|improve this answer
Excellent! (code used SPContext.Current.Web.Site.WebApplication.BlockedFileExtensions) –  Ralf de Kleine May 24 '11 at 8:44

Your Answer


