uppy/packages/@uppy
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
..
angular @uppy/unsplash,@uppy/provider-views: add utmSource option (#5580) 2025-01-08 10:14:15 +01:00
audio build(deps-dev): bump vitest from 1.6.0 to 1.6.1 (#5641) 2025-02-11 10:21:50 +01:00
aws-s3 build(deps-dev): bump vitest from 1.6.0 to 1.6.1 (#5641) 2025-02-11 10:21:50 +01:00
aws-s3-multipart Release: uppy@4.0.0 (#5325) 2024-07-10 15:36:53 +00:00
box Release: uppy@4.12.2 (#5590) 2025-01-09 12:48:54 +00:00
companion Release: uppy@4.13.3 (#5665) 2025-02-25 12:58:32 +00:00
companion-client build(deps-dev): bump vitest from 1.6.0 to 1.6.1 (#5641) 2025-02-11 10:21:50 +01:00
compressor build(deps-dev): bump vitest from 1.6.0 to 1.6.1 (#5641) 2025-02-11 10:21:50 +01:00
core @uppy/core: make upload() idempotent (#5677) 2025-03-13 09:46:24 +01:00
dashboard Release: uppy@4.13.3 (#5665) 2025-02-25 12:58:32 +00:00
drag-drop Release: uppy@4.12.2 (#5590) 2025-01-09 12:48:54 +00:00
drop-target Release: uppy@4.12.2 (#5590) 2025-01-09 12:48:54 +00:00
dropbox Release: uppy@4.12.2 (#5590) 2025-01-09 12:48:54 +00:00
facebook Release: uppy@4.12.2 (#5590) 2025-01-09 12:48:54 +00:00
file-input Release: uppy@4.12.2 (#5590) 2025-01-09 12:48:54 +00:00
form Release: uppy@4.12.2 (#5590) 2025-01-09 12:48:54 +00:00
golden-retriever Release: uppy@4.12.2 (#5590) 2025-01-09 12:48:54 +00:00
google-drive Release: uppy@4.12.2 (#5590) 2025-01-09 12:48:54 +00:00
google-drive-picker Release: uppy@4.13.2 (#5637) 2025-02-03 14:30:45 +00:00
google-photos Release: uppy@4.12.2 (#5590) 2025-01-09 12:48:54 +00:00
google-photos-picker Release: uppy@4.13.2 (#5637) 2025-02-03 14:30:45 +00:00
image-editor Release: uppy@4.12.2 (#5590) 2025-01-09 12:48:54 +00:00
informer Release: uppy@4.12.2 (#5590) 2025-01-09 12:48:54 +00:00
instagram Release: uppy@4.12.2 (#5590) 2025-01-09 12:48:54 +00:00
locales Release: uppy@4.13.2 (#5637) 2025-02-03 14:30:45 +00:00
onedrive Release: uppy@4.12.2 (#5590) 2025-01-09 12:48:54 +00:00
progress-bar Release: uppy@4.12.2 (#5590) 2025-01-09 12:48:54 +00:00
provider-views build(deps-dev): bump vitest from 1.6.0 to 1.6.1 (#5641) 2025-02-11 10:21:50 +01:00
react @uppy/react: pass getServerSnapshot to useSyncExternalStoreWithSelector (#5685) 2025-03-13 09:45:33 +01:00
react-native Release: uppy@4.6.0 (#5500) 2024-10-31 09:24:40 +00:00
redux-dev-tools Release: uppy@4.6.0 (#5500) 2024-10-31 09:24:40 +00:00
remote-sources build(deps-dev): bump vitest from 1.6.0 to 1.6.1 (#5641) 2025-02-11 10:21:50 +01:00
screen-capture Release: uppy@4.12.2 (#5590) 2025-01-09 12:48:54 +00:00
status-bar Release: uppy@4.13.3 (#5665) 2025-02-25 12:58:32 +00:00
store-default build(deps-dev): bump vitest from 1.6.0 to 1.6.1 (#5641) 2025-02-11 10:21:50 +01:00
store-redux build(deps-dev): bump vitest from 1.6.0 to 1.6.1 (#5641) 2025-02-11 10:21:50 +01:00
svelte build(deps-dev): bump vite from 5.4.8 to 5.4.12 (#5614) 2025-01-23 14:29:17 +01:00
thumbnail-generator build(deps-dev): bump vitest from 1.6.0 to 1.6.1 (#5641) 2025-02-11 10:21:50 +01:00
transloadit build(deps-dev): bump vitest from 1.6.0 to 1.6.1 (#5641) 2025-02-11 10:21:50 +01:00
tus build(deps-dev): bump vitest from 1.6.0 to 1.6.1 (#5641) 2025-02-11 10:21:50 +01:00
unsplash Release: uppy@4.13.0 (#5605) 2025-01-15 09:41:29 +00:00
url Release: uppy@4.13.2 (#5637) 2025-02-03 14:30:45 +00:00
utils build(deps-dev): bump vitest from 1.6.0 to 1.6.1 (#5641) 2025-02-11 10:21:50 +01:00
vue Release: uppy@4.12.2 (#5590) 2025-01-09 12:48:54 +00:00
webcam build(deps-dev): bump vitest from 1.6.0 to 1.6.1 (#5641) 2025-02-11 10:21:50 +01:00
webdav Release: uppy@4.12.2 (#5590) 2025-01-09 12:48:54 +00:00
xhr-upload Release: uppy@4.13.3 (#5665) 2025-02-25 12:58:32 +00:00
zoom Release: uppy@4.12.2 (#5590) 2025-01-09 12:48:54 +00:00