Akzeptieren Sie nur Bilddateien hochladen HTML hochladen
<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="image/*">
<!-- (IE 10+, Edge (EdgeHTML), Edge (Chromium), Chrome, Firefox 42+) -->
<input type="file" accept=".jpg,.png,.pdf" />
<input type="file" accept=".png, .jpg" />