Home  >  Q&A  >  body text

javascript - On the same web page, input type = "file", Apple iOS does not pop up to select a file, but Android can, how can I break it?

Open the same webpage in the WeChat browser, input type = "file", Apple ios cannot select file upload, Apple does not pop up the file selection directly, Android can, how can I break it?

<input type=file name="yinyuee" value="" accept="audio/*">

Normal Android, for example, Xiaomi looks like this:

But Apple can’t do it. Apple is like this:

Everything I found on Baidu said that Android can’t work, but Apple can…it’s really strange…

習慣沉默習慣沉默2688 days ago1122

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-06-12 09:29:02

    Requires ios native writing method to issue permissions

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-06-12 09:29:02

    Try adding apture="microphone" to input

    <input type=file name="yinyuee" value="" accept="audio/*" apture="microphone">

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-06-12 09:29:02

    You need a client to match you

    reply
    0
  • Cancelreply