Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/208.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 移动Safari,从相机上传图片时Chrome崩溃_Android_Html_Ios_Google Chrome_Mobile Safari - Fatal编程技术网

Android 移动Safari,从相机上传图片时Chrome崩溃

Android 移动Safari,从相机上传图片时Chrome崩溃,android,html,ios,google-chrome,mobile-safari,Android,Html,Ios,Google Chrome,Mobile Safari,我有一个最简单的页面:列表 在最简单的情况下,何时执行以下操作: -点击“上传”->从相机拍照->批准。 -对所有输入控件重复此操作。(下面代码中的12) -然后我又做了一次,第15次“上传”页面崩溃并被重新加载 如果再次启动该过程,则页面在4-5次“上载”后崩溃。最后,我可以崩溃的网页,即使在第一次图片上传 该漏洞是针对IPhone 6+IOS 10描述的。 但我在IPhone 6S+IOS 10上复制了它(但只需要更多的迭代, Iphone 6 IOS 10,Android Chrome 5

我有一个最简单的页面:
列表

在最简单的情况下,何时执行以下操作:
-点击“上传”->从相机拍照->批准。
-对所有输入控件重复此操作。(下面代码中的12)
-然后我又做了一次,第15次“上传”页面崩溃并被重新加载

如果再次启动该过程,则页面在4-5次“上载”后崩溃。最后,我可以崩溃的网页,即使在第一次图片上传

该漏洞是针对IPhone 6+IOS 10描述的。

但我在IPhone 6S+IOS 10上复制了它(但只需要更多的迭代, Iphone 6 IOS 10Android Chrome 58.0.3029

但在iOS 9.5.3上运行良好

Index.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .file-style {
            width: 20em;  height: 2em;
        }
    </style>
</head>
<body>

<input type='file' accept='image/*' class="file-style"><br>
<input type='file' accept='image/*' class="file-style"><br>
<input type='file' accept='image/*' class="file-style"><br>
<input type='file' accept='image/*' class="file-style"><br>
<input type='file' accept='image/*' class="file-style"><br>
<input type='file' accept='image/*' class="file-style"><br>
<input type='file' accept='image/*' class="file-style"><br>
<input type='file' accept='image/*' class="file-style"><br>
<input type='file' accept='image/*' class="file-style"><br>
<input type='file' accept='image/*' class="file-style"><br>
<input type='file' accept='image/*' class="file-style"><br>
<input type='file' accept='image/*' class="file-style"><br>

<script>

</script>
</body>
</html>

标题
.文件样式{
宽20公分,高2公分;
}












在真实场景中,我在react+redux上有SPA,上传4-6 图片。上传第4、5张图片后失败


唯一的解决办法是不要对这些有缺陷的浏览器使用
accept='image/*'
(或者根本不使用)

让您知道,使用
image/gif、image/jpg、image/jpeg、image/png
也不能解决您的问题

最后,如果移动支持是您的目标之一,请务必了解
accept
没有得到广泛支持: