Aceite apenas arquivos de imagem Faça upload html
<input type="file" name="myImage" accept="image/x-png,image/gif,image/jpeg" />
AhmedElkaiass
<input type="file" name="myImage" accept="image/x-png,image/gif,image/jpeg" />
<input type="file" accept="image/*">