Answers for "input file on image click"

0

input file on image click

.image-upload>input {
  display: none;
}

<div class="image-upload">
  <label for="file-input">
    <img src="https://icon-library.net/images/upload-photo-icon/upload-photo-icon-21.jpg"/>
  </label>

  <input id="file-input" type="file" />
</div>
Posted by: Guest on September-01-2021

Browse Popular Code Answers by Language