Browse Source

@uppy/transloadit: better defaults for rate limiting (#3414)

Antoine du Hamel 3 years ago
parent
commit
fa140ead94
1 changed files with 3 additions and 1 deletions
  1. 3 1
      packages/@uppy/transloadit/src/index.js

+ 3 - 1
packages/@uppy/transloadit/src/index.js

@@ -53,7 +53,8 @@ module.exports = class Transloadit extends BasePlugin {
       params: null,
       fields: {},
       getAssemblyOptions: defaultGetAssemblyOptions,
-      limit: 0,
+      limit: 20,
+      retryDelays: [7_000, 10_000, 15_000, 20_000],
     }
 
     this.opts = { ...defaultOptions, ...opts }
@@ -751,6 +752,7 @@ module.exports = class Transloadit extends BasePlugin {
         metaFields: ['assembly_url', 'filename', 'fieldname'],
         // Pass the limit option to @uppy/tus
         limit: this.opts.limit,
+        retryDelays: this.opts.retryDelays,
       })
     }