Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Progress events on upload #103

Open
Thinjon100 opened this issue Apr 15, 2022 · 1 comment
Open

Progress events on upload #103

Thinjon100 opened this issue Apr 15, 2022 · 1 comment
Labels
feature request New feature or request

Comments

@Thinjon100
Copy link

It appears that mock-xmlhttprequest supports emitting progress events on mocked upload requests (via the .uploadProgress(number) method).
Currently, a full 100% progress event is emitted at the end of the response. If a delay is specified, would it be possible to emit a few progress events at regular intervals before the call to .respond() so we can simulate progress events during a large file upload?

@nutboltu nutboltu added the feature request New feature or request label Apr 18, 2022
@vogtm
Copy link

vogtm commented May 22, 2023

Uh, this is exactly what I was looking for.
Is there any chance this PR is gonna get merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants