chieffancypants/angular-loading-bar

Use XMLHttpRequest event handlers to track actual progress of requests

Opened this issue · 1 comments

In angular 1.5.4 eventHandlers and uploadEventHandlers were added to $http config. This should allow to track real progress of requests and make progress bar more accurate.

Any plans to support this?

Also, it seems that ng-file-upload just modifies XMLHttpRequest prototype to receive upload progress notifications without relying on angular 1.5.

I also needed this so I forked and added it in this commit: 28d32e5

This is not really production ready since it just completely overwrites any existing eventHandlers and uploadEventHandler objects if they exist.

As stated by @NickAb, this requires Angular 1.5.4+.