This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Ability to react to progress events of $http XHR #1934
Closed
Description
I would like to be able to bind to the progress event of the xhr upload.
for example (in plain javascript):
var xhr = new XMLHttpRequest();
xhr.upload.addEventListener("progress", uploadProgress, false)
(so I can show a progress meter for uploaded files)
I want to be able to do the same thing by doing $http.post...
for this and any other case edge case where you need to interact with the raw XHR object itself it might be nice to provide something that lets you just get at the original xhr object.