HTML apply a filter November 30, 2022 by Tarik I think u are looking for the accept parameter. Try this works <input type="file" accept="image/*" />