Upload large files, obtain the upload progress through the interface, and constantly update the progress. If the browser is not operated for about 20 minutes, the upload will be interrupted and an error net:: err will be reported_ NETWORK_ IO_ SUSPENDED
reason:
It is a protection mechanism of Google browser. If the web page is not operated for 15 minutes, the network request will be interrupted.
Solution:
Create a div with an interval of time to simulate the mouse click event and automatically trigger the click.
let timeDiv = document.createElement('div'); document.body.appendChild(timeDiv); interval = setInterval(()=>{ timeDiv && timeDiv.click(); },1000*10);
Similar Posts:
- [Solved] WebGL Error: uncaught referenceerror unitymodule is not defined
- [Solved] DOM adds elements to HTML Error: Failed to execute ‘appendChild’ on ‘Node’: parameter 1 is not of typ…
- [Solved] DOM Add Element to HTML Error: Failed to execute ‘appendChild’ on ‘Node’: parameter 1 is not of type ‘Node’
- SyntaxError: missing ; Problem record of before statement
- document.body.scrollTop or document.documentElement.scrollTop
- How to Solve Error: Cannot set property ‘onclick’ of null
- SharePoint 2013 Step by Step: How to Upload Multiple Documents in Document Library
- Always report uncaught error:[$ injector:modulerr ]Solutions to errors
- Document.body.clientheight cannot get the browser page height correctly
- [How to Solve] Cannot set property ‘onclick’ of null