Block file types for a document library in SharePoint website

In Nutshell, this blog post explains how to block file types at document library level in a website. Also this post is a documentation for my Codeplex project, which enables in a particular document library in SharePoint website.

Codeplex Project

Codeplex Project

Generally, in SharePoint collaborative portals administrators like to have better control over the file types being uploaded in a document library.

Unfortunately, SharePoint provides a way to block file types at application level. Refer MSDN article for more details.

Since, this can be a common requirement across different SharePoint projects, I created a SharePoint project called SPBlockFileTypes on CodePlex.com Below is the detailed documentation about this project.

Introduction :

This project allows website managers to block file types being uploaded in SharePoint document library.

Manage File Types

Manage File Types

Features :

This project includes a single SharePoint feature.

On activation this feature adds a custom action under site administration in site settings page. This custom action link will be visible to only users with manage web permissions. This link points to the application page which website manager can manage and configure allowed or blocked file types of a document library.

SP Block File Types Feature

SP Block File Types Feature

Block File Types Cutom Action

Block File Types Cutom Action

On deactivating this feature, all the blocking rules on document library set by the website manager will be removed.

You can view this project on codeplex site here.

You can also Download the Source code for this project.

Cheers,

Rahul Babar

Advertisements

One thought on “Block file types for a document library in SharePoint website

  1. Have you ever considered doing this at the Site Collection level? Rather than allowing the Site Collection or Site Administrators to configure this, to simply make it a feature applied to the Site Collection? We’d like to block certain file types for some of our MySites users but allow those file types for others. Since the user is a Site Collection Admin we wouldn’t want them to have access to the configuration. I could hide the feature so they can’t just disable it, but how bout just making it something I can configure for all libraries via cmdlets.

    I like what you’ve got, I’ll be digging deeper into the source to see if I can make it work for what we need.

    Thanks for posting this.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s