In HTML, after clicking the image button, we have created a function to display the Open File dialog.
There was a user who said that the Open File dialog did not appear when I clicked the image button.
I checked it in our environment, but it will not be reproduced.
Under what conditions do you think the Open File dialog might not appear?
<html>
<div>
<label for="FileOpen">
<input id="FileOpen" type="file" name="File" class="FileOpen" style="display:none;">
<img src="./Test.png" border="0" style="cursor:pointer;">
</label>
</div>
</html>
Supplemental:
Both users are using Edge or Chrome.
The web server uses Raspberry Pi OS (Django).
I can't say whether it's related only to what you can read from the questionnaire, but I've had a similar experience, so I'd like to answer it for your reference.
In my case, a user who informed me that the button could not be pressed used the browser's zoom function to display something other than 100%.
As a result, the layout of the screen was partially broken, and the image was placed after the <div>
or another element area, and although visible, no matter how much you press it, it did not respond.
If possible, why don't you check the zoom rate of the browser of the user who is experiencing the symptom?I hope it will be a clue to the solution.
When I click the image button myself, the Open File dialog does not appear.
There was no <div>
in the source (Edge and IE mode, Chrome).
© 2024 OneMinuteCode. All rights reserved.