Skip to content

[pull] main from enyo:main - #14

Merged
pull[bot] merged 2 commits into
AKJUS:mainfrom
enyo:main
Sep 24, 2026
Merged

pull[bot] merged 2 commits into
AKJUS:mainfrom
enyo:main

Conversation

@pull

@pull pull Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

`transformFile` is asynchronous, and a file is already UPLOADING while it
runs. For that window it has no `xhr`, which broke `cancelUpload` twice
over.

`_getFilesWithXhr(file.xhr)` was called with `undefined` and matched
every file whose `xhr` was also undefined -- that is, everything still
queued. Cancelling one upload set them all to CANCELED and emitted a
`canceled` event for each. Group by the request only when there is one;
without it the file is its own group.

Then, because nothing rechecked the status, the transform callback went
on to upload the file the user had just cancelled. Bail out instead when
every file in the batch has been cancelled.

Refs #2231
Don't take the queue down when cancelling a transforming file
@pull pull Bot locked and limited conversation to collaborators Sep 24, 2026
@pull pull Bot added the ⤵️ pull label Sep 24, 2026
@pull
pull Bot merged commit f5b122d into AKJUS:main Sep 24, 2026
1 check failed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant