【问题标题】:html input type file accept image not allowing to choose file in ios 11html输入类型文件接受图像不允许在ios 11中选择文件
【发布时间】:2018-03-08 15:50:03
【问题描述】:

直到 ios 10 它都在工作。当用户单击 ipad 中的输入按钮时,它要求从图库中选择图像或从相机中捕获。 但是在 ios 11 中它是直接打开相机的。谁能帮助我如何打开图库,以便用户可以从图库中选择图像。

<input type="file" accept="image/*" id="image-input" capture />

【问题讨论】:

    标签: javascript ios reactjs cordova ios11


    【解决方案1】:

    跟我一起工作

    &lt;input type="file" accept="image/*" id="image-input"/&gt;

    【讨论】:

    • 我试过 capture="camera" 但它仍然是直接打开相机而不是画廊。
    • 检查它现在使用文件系统
    • 替换为文件系统仍然打开相机没有画廊选项
    • 添加 multiple 并尝试因为我现在没有 ios
    • 它通过删除捕获来工作。感谢您的投入。您的意见帮助我解决了这个问题。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-01-21
    • 2022-11-24
    • 2014-09-10
    • 1970-01-01
    • 1970-01-01
    • 2013-04-16
    • 2014-03-11
    相关资源
    最近更新 更多