adamsanderson / jQuery-File-Validator

Validate the contents of File Inputs before submission.
http://adamsanderson.github.com/jQuery-File-Validator
18 stars 7 forks source link

A query for you #1

Closed ravibpatel91 closed 10 years ago

ravibpatel91 commented 10 years ago

Hello, Adam Can we check multiple file types using this validator plugin ? Like file can be Image OR PDF ? Please suggest me the code to use. because, in documentation it was not included.

adamsanderson commented 10 years ago

Hi @ravi22691, you can match against content types such as "image/png" using a regular expression. So try this out, configure it with: onValidation: /image|pdf/. I think that should work just fine.