DK.
DK.

Reputation: 91

MOSS Site Collection Documents - Restricting special characters in a filename

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?

Upvotes: 1

Views: 574

Answers (2)

DK.
DK.

Reputation: 91

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

Upvotes: 0

Jeroen Ritmeijer
Jeroen Ritmeijer

Reputation: 2792

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

Have a look at the first sample in this post.

Upvotes: 1

Related Questions