The "Accept" rule in the latest version of jQuery Validate now expects a mime type to be specified, not a file extension.
A new "Extensions" rule has subsequently been added for this purpose.
Note that as of v1.90 both of the above rules are now available separately inside the "Additional Methods" download.
Comments: This is part of jquery.validate, and has been added to it on version 1.10.0 from 2012-09-07 see http://jquery.bassistance.de/validate/changelog.txt: > Moved old accept method to extension additional-method, added new accept method to handle standard browser mimetype filtering. Fixes #287 and supersedes #369 I am not sure that it is a correct move to reroute 'accept' rules to 'extension' as it would block users from using the new 'accept' rule, and even worth - divert the code from the validation plugin's documentation. Instead, I suggest we fix the FileExtension validation attribute to use jquery's 'extension' validation rule, and add an AcceptMimeType validation attribute that would use jquery's 'accept'. then, in the unobtrusive jquery code, we will test to see if the 'extension' rule exists (otherwise we are running in pre jquery validate 1.10). if not, extension rules will route to 'accept' and 'accept' rules will be discarded (as they are not supported pre 1.10)
A new "Extensions" rule has subsequently been added for this purpose.
Note that as of v1.90 both of the above rules are now available separately inside the "Additional Methods" download.
Comments: This is part of jquery.validate, and has been added to it on version 1.10.0 from 2012-09-07 see http://jquery.bassistance.de/validate/changelog.txt: > Moved old accept method to extension additional-method, added new accept method to handle standard browser mimetype filtering. Fixes #287 and supersedes #369 I am not sure that it is a correct move to reroute 'accept' rules to 'extension' as it would block users from using the new 'accept' rule, and even worth - divert the code from the validation plugin's documentation. Instead, I suggest we fix the FileExtension validation attribute to use jquery's 'extension' validation rule, and add an AcceptMimeType validation attribute that would use jquery's 'accept'. then, in the unobtrusive jquery code, we will test to see if the 'extension' rule exists (otherwise we are running in pre jquery validate 1.10). if not, extension rules will route to 'accept' and 'accept' rules will be discarded (as they are not supported pre 1.10)