uppy/packages
Merlijn Vos f881fa031e
@uppy/core: make upload() idempotent (#5677)
Before

Add a file
Call uppy.upload() but make it fail (set throttling to offline in your browser)
Call uppy.upload() again but no throttling
Events are not fired, endless uploading state.
You must call retryAll() instead but it's better DX if you can simply call upload() again and let us figure it out.

After

upload() behaves like retryAll() when errors occurred in a backwards compatible way.

What if an upload fails and you also add a new file?

Backwards compatible behaviour similar to how it currently works when using the dashboard. In the dashboard you can only click the retry button and once that upload is done you can click upload again to upload the new files.

When a previous upload partially failed, you add a new file, and call upload() this PR makes sure two uploads are done in a row. That does mean you get the 'complete' event twice.
2025-03-13 09:46:24 +01:00
..
@uppy @uppy/core: make upload() idempotent (#5677) 2025-03-13 09:46:24 +01:00
uppy Fix BasePlugin export for CDN bundle (#5684) 2025-03-13 09:45:15 +01:00