showing results for javascript form validation pattern matching
1<input type="file"name="my-image"id="image"accept="image/gif, image/jpeg, image/png" />
2To select only image files, you can use this accept="image/*"34<input type="file"name="my-image"id="image"accept="image/*" />