Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Commented Issue: FileExtensionsAttributeAdapter no longer works with jQuery validate [882]

$
0
0
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: A quick fix is to remap the jQuery Unobtrusive plugin to use the extension rule. Change: adapters.addSingleVal("accept", "exts") To: adapters.addSingleVal("accept", "exts", "extension") The final parameter is the jQuery Validate rule name which if not specified defaults to the adapter name.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>