im uploading an image and trying to validate it before with jquery. Here is my code:
The documentation states that the accept
rule only accepts mime-types as an argument.
If you wanted to accept all images then use image/*
.
If you want to accept only specific image types then you can specify multiple mime-types by separating them with a comma, e.g. image/pjpeg,image/jpeg,image/png,image/gif
.