我希望使用 IOS 9 手机的访问者能够通过网页将图片上传到我的网络服务器上。在 iOS 8 及之前的版本中,这可以通过使用 input 元素简单地实现:<input type="file" name="file" accept="image/*">
从iOS9开始,iPhone的相机应用程序在选择用相机上传照片时只会显示空白屏幕。
我写了一个小测试脚本来演示这个问题:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
<body>
<input type="file" name="file" id="new-submission-file" accept="image/*">
<input type="file" name="file" id="new-submission-file2" accept="image/x-png, image/gif, image/jpeg">
</body>
</html>
你可以在这里找到它:http://drl.lu-re.de/os9test/
有没有解决办法,或者我们必须等待苹果的错误修复吗?
这是权限问题,请进入设置 -> 隐私 -> 相机并启用浏览器访问
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)