javascript - reject if file name contains non english character -


am trying upload file file name contains in english character symbol or number ,my problem if file name contains english chinese character need validate , need show alert message file name should'nt in non english character

can send me code

get value of file input, , match against regex \w

but should not disallow this. should instead rename file after uploaded. user may upload file name valid in os, invalid on server os. can still store original filename database, if needed.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -