I have form which should upload image. each form placed in iframe
<body style="margin: 0; padding: 0; height: 100%; cursor: pointer;" onclick="document.querySelector('.register-upload-input').click()">
<form method="POST" action="http://127.0.0.1:8000/de/client/registerupload" accept-charset="UTF-8" enctype="multipart/form-data">
<input class="register-upload-input" style="display: none;" onchange="document.querySelector(".preloader").style.display="block";document.querySelector("form").submit();" accept=".jpg,.jpeg,.png" name="image" type="file">
</form>
</body
so I click on iframe, file upload dialog appears and I can choose image. body
element has onclick
event.
everything works fine, but when I try to upload images with iphone nothing happens, dialog prompt dosn't show up. it works on android, but doesn't work on iphone. I did research, usually such problem happens cause the element should has cursor: pointer
in styles. I added it, but nothings changed