Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Restrict type of files in a document library

  Asked By: Mrigendra Bhuyan         Date: Mar 10, 2010      Category: Sharepoint      Views: 536
 

There any way to limit the types of files in a specific document library?

I know it can be done from the central administration but I understand that
this will affect all libraries. The idea is that a given library only accept
Office documents for example.

Tagged:              

 

1 Answer Found

 
Answer #1       Answered By: Delbert Frederick          Answered On: Mar 10, 2010       

This feature is not available OOB in Libraries or lists. However there can
be a workaround using custom event handlers on lists. Event Handler works
on lists basis, you can just check for the file extension of the file being
uploaded, if it is not Office document  then simply discard the operation
and display a message to the end user or redirect him to another custom
page with any message you like.

The other thing you can do is to just create a custom workflow in
SharePoint Designer and deploy to the list or library. The workflow simply
deletes any Non-Office Document or they can be moved to another temporary
list.

SharePoint Designer Workflow
www.documentmanagementworkflowinfo.com/.../sh
arepoint-designer-workflow-move-document-one-library-next.htm

Event Troubleshooting
msdn.microsoft.com/en-us/library/aa979520.aspx

 
Didn't find what you were looking for? Find more on Restrict type of files in a document library Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].