We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
how to provide a progress when post or get wit this library? i tried this but doesnt work?
service(type = this.method.get, url = '', authorization = null, body = null) { const context = this; return new Ember.RSVP.Promise( function (resolve, reject) { fetch(url, { method: type, headers: { 'Content-Type': 'application/json', "Authorization": authorization }, body: body, xhrFields: { onprogress: function (e) { context.debug(e); } } }).progress(function (progress) { context.debug(progress); }).then(function (response) { resolve(response); }).catch(function (error) { reject(error); }) }); },
The text was updated successfully, but these errors were encountered:
fetch have no support for progress events. The solution is to use streams. But the streams are not supported in polyfill. This is how it is supposed to work https://jakearchibald.com/2015/thats-so-fetch/#streams
fetch
progress
Sorry, something went wrong.
No branches or pull requests
how to provide a progress when post or get wit this library?
i tried this but doesnt work?
The text was updated successfully, but these errors were encountered: