Answers for "upload only image file in html"

21

accept only image files upload html

<input type="file" name="myImage" accept="image/x-png,image/gif,image/jpeg" />
Posted by: Guest on February-19-2020
0

upload only image input tag

<input type="file" name="myImage" accept="image/*" />
Posted by: Guest on February-14-2021
3

how to upload image in html

<form action="/action_page.php">
  <label for="img">Select image:</label>
  <input type="file" id="img" name="img" accept="image/*">
  <input type="submit">
</form>
Posted by: Guest on March-25-2020

Code answers related to "upload only image file in html"

Browse Popular Code Answers by Language