Browse Source

Fix retry upload with Golden Retriever (#4155)

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Merlijn Vos 2 years ago
parent
commit
a2d574ba51
1 changed files with 1 additions and 2 deletions
  1. 1 2
      packages/@uppy/golden-retriever/src/index.js

+ 1 - 2
packages/@uppy/golden-retriever/src/index.js

@@ -296,12 +296,11 @@ export default class GoldenRetriever extends BasePlugin {
     // start all uploads again when file blobs are restored
     const { currentUploads } = this.uppy.getState()
     if (currentUploads) {
+      this.uppy.resumeAll()
       Object.keys(currentUploads).forEach((uploadId) => {
         this.uppy.restore(uploadId, currentUploads[uploadId])
       })
-      this.uppy.resumeAll()
     }
-    this.uppy.upload()
     this.uppy.setState({ recoveredState: null })
   }