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

progressSubscriber not work when downloading! #2553

Closed
windreamlion opened this issue Apr 14, 2017 · 3 comments
Closed

progressSubscriber not work when downloading! #2553

windreamlion opened this issue Apr 14, 2017 · 3 comments

Comments

@windreamlion
Copy link

Dear all:

when i create ajax to get a image, i can't get onProgress when downloading,
i need some help,Thx!!

Observable.ajax({url, crossDomain: true, ...options})

RxJS version: 5.3.0

Code to reproduce:

let ps = new Subscriber((e)=>console.log(e));

Observable.ajax({'imgUrl', crossDomain: true, progressSubscriber:ps,timeout:5000,}).subscribe()

Expected behavior:

i hope get onProgress eventData on downloading;

Actual behavior:

progressSubscriber not work;

Additional information:

i saw the code ,maybe root.XDomainRequest interrupt the xhr.onprogress ;

if (root.XDomainRequest) {
xhr.onprogress = xhrProgress;
}

@Brooooooklyn
Copy link
Contributor

see #2428

@benlesh
Copy link
Member

benlesh commented Mar 16, 2018

Seems to be a duplicate of #2448

@benlesh benlesh closed this as completed Mar 16, 2018
@lock
Copy link

lock bot commented Jun 5, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants