ソースを参照

Merge branch 'master' of https://github.com/transloadit/uppy

Artur Paikin 6 年 前
コミット
030ab82842
1 ファイル変更2 行追加2 行削除
  1. 2 2
      packages/@uppy/xhr-upload/src/index.js

+ 2 - 2
packages/@uppy/xhr-upload/src/index.js

@@ -207,12 +207,12 @@ module.exports = class XHRUpload extends Plugin {
 
       xhr.upload.addEventListener('loadstart', (ev) => {
         this.uppy.log(`[XHRUpload] ${id} started`)
-        // Begin checking for timeouts when loading starts.
-        timer.progress()
       })
 
       xhr.upload.addEventListener('progress', (ev) => {
         this.uppy.log(`[XHRUpload] ${id} progress: ${ev.loaded} / ${ev.total}`)
+        // Begin checking for timeouts when progress starts, instead of loading,
+        // to avoid timing out requests on browser concurrency queue
         timer.progress()
 
         if (ev.lengthComputable) {