uppy/e2e
Mikael Finstad 24fd4158a9
Companion stream upload unknown size files (#5489)
* stream upload unknown size files

behind a new option streamingUploadSizeless
COMPANION_STREAMING_UPLOAD_SIZELESS
for tus

* allow for all upload protocols

seems to be working
closes #5305

* refactor

and fix bug where progress was not always emitted

* fix type

* fix progress throttling

only do it on total progress

* Improve progress in UI

- only show progress percent and total bytes for files that we know the size of. (but all files will still be included in number of files)
- use `null` as an unknown value for progress and ETA, allowing us to remove ETA from UI when unknown
- `percentage` make use of `undefined` when progress is not yet known - don't show percentage in UI when unknown
- add a new state field `progress` that's the same as `totalProgress` but can also be `null`

* fix build error

* format

* fix progress when upload complete

* use execa for companion load balancer

if not, then it leaves zombie companion instances running in the background when e2e stops
have to be manually killed before running e2e again

* update docs and tests for new state.progress

* revert progress/totalProgress

* improve doc

* remove option streamingUploadSizeless

we agreed that this can be considered not a breaking change

* change progress the to "of unknown"

* revert

* remove companion doc

* add e2e test
2024-12-07 10:30:00 +08:00
..
clients @uppy/aws-s3: add endpoint option (#5173) 2024-06-13 14:55:12 +02:00
cypress Companion stream upload unknown size files (#5489) 2024-12-07 10:30:00 +08:00
.parcelrc meta: Make E2E Great Again (#3444) 2022-02-08 17:37:27 +01:00
cypress.config.mjs e2e: increase requestTimeout to 16s (#4587) 2023-07-19 11:54:22 +02:00
generate-test.mjs meta: use load balancer for companion in e2e tests (#4228) 2023-02-02 11:25:50 +01:00
mock-server.mjs Companion stream upload unknown size files (#5489) 2024-12-07 10:30:00 +08:00
package.json Google Picker (#5443) 2024-12-02 18:34:50 +08:00
start-companion-with-load-balancer.mjs Companion stream upload unknown size files (#5489) 2024-12-07 10:30:00 +08:00
tsconfig.json @uppy/vue: migrate to Composition API with TS & drop Vue 2 support (#5043) 2024-03-28 14:47:06 +01:00