upload only image input tag code example Example: upload only image input tag <input type="file" name="myImage" accept="image/*" />