Akzeptieren Sie nur die Eingabe der Bilddatei
<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" name="myImage" accept="image/*" />
<input type="file" name="myImage" accept="image/png, image/gif, image/jpeg" />
<input type="file" name="myImage" accept="image/*" />
<input type="file" accept=" video/*" />