Home  >  Q&A  >  body text

javascript - HTML <input type="file"> cannot pop up file selector when clicked

code show as below:

<!DOCTYPE html>
<html>
<body>
<form action="" method="post" enctype="multipart/form-data">
    <input type="file">
    <button type="submit">提交</button>
</form>
</body>
</html>

The simplest and most basic HTML code, when the company computer is running, after clicking to select a file, there will be an action of the button being clicked, but the file selector will not be called out.
There should be nothing special about the company computer except that it is not connected to the external network.
I have tried 360 Rapid Browser, 360 Safe Browser, QQ Browser, and IE Browser, but they cannot bring up the file selector.
What other possible reasons may cause this problem?
Inexplicable. . .

仅有的幸福仅有的幸福2665 days ago763

reply all(3)I'll reply

  • 習慣沉默

    習慣沉默2017-06-05 11:11:11

    I gave it a try for you. I have no problem here. I added a head and charset for you:

    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8">
    </head>
    <body>
    <form action="" method="post" enctype="multipart/form-data">
        <input type="file">
        <button type="submit">提交</button>
    </form>
    </body>
    </html>

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-06-05 11:11:11

    Are your browsers using chrome kernel or ie kernel? I can only guess that there is something wrong with ie

    reply
    0
  • ringa_lee

    ringa_lee2017-06-05 11:11:11

    Try your anti-virus software or something, or use another colleague’s computer,
    or try restarting, there is nothing wrong with this code, it should be a problem with your computer

    reply
    0
  • Cancelreply