ERR_SPDY_PING_FAILED error with Uploader Chrome ( DropZone )

SNa*_*aRe 5 javascript google-chrome dropzone.js

I have an uploader based on http://www.dropzonejs.com/

When I upload a file bigger than 3 MB ( 13 MB ) with Chrome, I receive ERR_SPDY_PING_FAILED error in the console log.

When I upload the file, the progress bar stuck at a certain level. This is when we get this error.

I tried it with Safari, Firefox we don't have this problem.

I googled and found that others also complaining the same problem.

This is request headers from Chrome

Provisional headers are shown
Accept: application/json
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary4sLYTyIwAAXnftvv
Origin: https://www.example.com
Referer: https://www.example.com/upload/document
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
X-Requested-With: XMLHttpRequest
------WebKitFormBoundary4sLYTyIwAAXnftvv
Content-Disposition: form-data; name="_token"

GiY0lmkggP4hlyhunGRQOOBa1k1dqsr44ZgHA41e
------WebKitFormBoundary4sLYTyIwAAXnftvv
Content-Disposition: form-data; name="file[0]"; filename="sdf_brz_lin.1.jpg"
Content-Type: image/jpeg


------WebKitFormBoundary4sLYTyIwAAXnftvv--
Run Code Online (Sandbox Code Playgroud)

In this stackoverflow post, they proposed some solutions but I couldn't implement their solutions since they are based on other scripts.

请求偶尔在Chrome中停滞了很长时间

他们提出了类似的建议

$(document).ready(function() {
    $.keepalive =     
            setInterval(function() {
               $.ajax({
                  url: '/ping.html',
                  cache: false
               });         
            }, 60000);    
});
Run Code Online (Sandbox Code Playgroud)

但是我不知道如何将该解决方案集成到我的Dropzone中。

我不想说访客是否使用Chrome,您不能上传大于X MB的文件...

小智 0

您好,就我而言,这是一个网络问题。因为如果我们将系统连接到 IPV6 网络,就会发生此问题。在 ipV4 上,上传就像魅力一样。