I want to restrict the browser to JPG files when I click on browse button of the <input type="file">.
<input type="file">
Is it possible to browse for specific file types?
This will give the correct (custom) filter when the file dialog is showing:
<input type="file" accept=".jpg, .png, .jpeg, .gif, .bmp, .tif, .tiff|image/*">
2.1m questions
2.1m answers
60 comments
56.9k users