@uploadcare/upload-client 4.3.1-alpha.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -1
- package/dist/index.browser.js +182 -151
- package/dist/index.node.js +87 -57
- package/dist/index.react-native.js +182 -151
- package/dist/types.d.ts +32 -17
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -364,6 +364,19 @@ Sets the maximum number of attempts to retry throttled requests.
|
|
|
364
364
|
|
|
365
365
|
Defaults to `1`.
|
|
366
366
|
|
|
367
|
+
#### `retryNetworkErrorMaxTimes: number`
|
|
368
|
+
|
|
369
|
+
Sets the maximum number of attempts to retry requests that failed with a network error.
|
|
370
|
+
|
|
371
|
+
Defaults to `3`.
|
|
372
|
+
|
|
373
|
+
The delay between attempts equals attempt number, i.e.
|
|
374
|
+
|
|
375
|
+
- first attempt - 1 second delay
|
|
376
|
+
- second attempt - 2 seconds delay
|
|
377
|
+
- third attempt - 3 seconds delay
|
|
378
|
+
- ...
|
|
379
|
+
|
|
367
380
|
#### `multipartChunkSize: number`
|
|
368
381
|
|
|
369
382
|
This option is only applicable when handling local files.
|
|
@@ -411,7 +424,7 @@ Metadata is additional, arbitrary data, associated with uploaded file.
|
|
|
411
424
|
|
|
412
425
|
Non-string values will be converted to `string`. `undefined` values will be ignored.
|
|
413
426
|
|
|
414
|
-
See [REST API
|
|
427
|
+
See [docs][uc-file-metadata] and [REST API][uc-docs-metadata] for details.
|
|
415
428
|
|
|
416
429
|
|
|
417
430
|
## Testing
|
|
@@ -476,3 +489,4 @@ request at [hello@uploadcare.com][uc-email-hello].
|
|
|
476
489
|
[build-url]: https://github.com/uploadcare/uploadcare-js-api-clients/actions/workflows/checks.yml
|
|
477
490
|
[uc-docs-upload-api]: https://uploadcare.com/docs/api_reference/upload/?utm_source=github&utm_campaign=uploadcare-js-api-clients
|
|
478
491
|
[uc-docs-metadata]: https://uploadcare.com/api-refs/rest-api/v0.7.0/#tag/File-Metadata
|
|
492
|
+
[uc-file-metadata]: https://uploadcare.com/docs/file-metadata/
|