In this article we will be seeing about blocked file types in SharePoint 2010.
Each Web application maintains a list of blocked file types that is based on
file name extensions which can be restricted from being uploaded or downloaded. Using Central Administration:
Using Visual Studio 2010:
// adding blocked file type blockFileTypes.Add(addBlockFileType);
// removing blocked file type blockFileTypes.Remove(removeBlockFileType);
Build the solution.
All the file extensions from the blocked file type will be displayed as shown in the following.
A new file extension "aspx" is added and the existing file extension "asp" is removed successfully.
C# Corner. All contents are copyright of their authors.