How do I make SharePoint accept attachments with special characters in the filename?
3 answers
You can create an "event receiver" (see the SPItemEventReceiver class on msdn) that will watch for the ItemAttaching event that occurs before the item is attached. This will allow you to replace invalid characters with legitimate replacements.
Note that if you replace all invalid characters with the same "_", for example, this is to avoid name collisions.
-Oisin
+2
source to share
I was able to create a client side javascript based validation that will validate special characters and prompt the user to rename the filename before submitting the item. This works for MOSS 2007 and WSS.
See this post: http://sharepointchic.blogspot.com/2010/12/input-validation-for-file-attachment.html
+1
source to share