MOSS Site Collection Documents - Restricting special characters in a filename

555 Views Asked by At

I am trying to block users from entering square brackets ([]) or other charcters to a filename while uploading a document.

Is there a way to block this in SharePoint Central Administration or is there settings that I can change?

2

There are 2 best solutions below

0
On BEST ANSWER

I had to intercept the EventReciever during synchronous call (ItemAdding and ItemUpdating method) and cancel the event.

1
On

You would need to create an event receiver or a workflow to do this.

Have a look at the first sample in this post.