pattern in input type file code example
Example: input type file pattern attribute in html
<input type="file" name="my-image" id="image" accept="image/gif, image/jpeg, image/png" />
To select only image files, you can use this accept="image/*"
<input type="file" name="my-image" id="image" accept="image/*" />