I currently have a ValidationExpression on the client-side which (somewhat) restricts the user from uploading anything other than (.txt) files.
^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))(.txt)$
I was wondering, since this validator restricts some special characters, will I run into trouble if one of my users has the file he wishes to upload inside a folder which has a special character in its name?
Im wondering if there is a better ValidationExpression I can use on the client side to prevent any inconveniences to my users. I am in the process of setting the server-side validation, but I'd still like to have a good client-side validator as well that would allow special characters that are not too risky.
Anyone have a good solution for me?