1

I know I can block certain types of files from uploading for all document libraries but I was thinking how can I block it for a specific document library.

1

The first thing that comes to mind would be to create an Event Receiver and hook into the ItemAdding() event. That would let you test the file prior to it being added to the library so that you can reject it if it is not an approved extension.

There is probably a way to do this via Workflow as well but that isn't as clean of a solution.

0

There is the same question. As Dave Wise said the simplest way is to use Event Reseiver. You can see this example to undestand how to use it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.