Pārlūkot izejas kodu

Change concurrent file upload limit to 5 in tus and xhr-upload (#2993)

Artur Paikin 3 gadi atpakaļ
vecāks
revīzija
255429a39f

+ 1 - 1
packages/@uppy/tus/src/index.js

@@ -66,7 +66,7 @@ module.exports = class Tus extends BasePlugin {
     // set default options
     const defaultOptions = {
       useFastRemoteRetry: true,
-      limit: 0,
+      limit: 5,
       retryDelays: [0, 1000, 3000, 5000],
       withCredentials: false,
     }

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

@@ -68,7 +68,7 @@ module.exports = class XHRUpload extends BasePlugin {
       bundle: false,
       headers: {},
       timeout: 30 * 1000,
-      limit: 0,
+      limit: 5,
       withCredentials: false,
       responseType: '',
       /**

+ 1 - 15
website/src/docs/tus.md

@@ -75,21 +75,7 @@ Pass an array of field names to limit the metadata fields that will be added to
 * Set this to `null` (the default) to send *all* metadata fields.
 * Set this to an empty array `[]` to not send any fields.
 
-### `autoRetry: true`
-
-> This option may be removed in Uppy 2.0. Consider implementing the feature manually:
->
-> ```js
-> uppy.on('back-online', () => {
->   uppy.retryAll()
-> })
-> ```
-
-Configures whether or not to auto-retry the upload when the user's internet connection is back online after an outage.
-
-Note that this is unrelated to the `retryDelays` option. The `retryDelays` option specifies how often to retry an upload that failed. The `autoRetry` option attempts to retry uploads that failed in the past, once the network has changed.
-
-### `limit: 0`
+### `limit: 5`
 
 Limit the amount of uploads going on at the same time. Setting this to `0` means there is no limit on concurrent uploads.
 

+ 1 - 1
website/src/docs/xhrupload.md

@@ -216,7 +216,7 @@ Set to `0` to disable this check.
 
 The default for the timeout is 30 seconds.
 
-### `limit: 0`
+### `limit: 5`
 
 Limit the amount of uploads going on at the same time. Setting this to `0` means there is no limit on concurrent uploads.