check for selected file name using regular expression #533

wants to merge 1 commit into


None yet
2 participants

Sometimes it is required to check if the selected files' names are valid or not according to certain rule. It will be easy to do so if there is a check for file name in the FilesAdded event callback that is called right after the user chooses any file.


jayarjo commented Apr 12, 2013

You can do this by hooking onto FilesAdded event before you call uploader.init() and do any kind of additional filtering from there, be it name check, size control, etc.

jayarjo closed this Apr 12, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment