jQuery media validation by content type
jquery, validation
Solution
According to Wikipedia all MIME types for videos begin with `video/*`.
So you simply need to change `audio/*` to `video/*`:
$( "#myform" ).validate({
rules: {
field: {
required: true,
accept: "video/*"
}
}
});
Please check working example.
Problem
I would like to validate video files with content type. This is possible for audios Link here. I don't want to validate by mentioning the extensions. But I want to validate whether the file is video file or not?? Is it possible?? or I really need to mention extension for validation.