angular-loading-bar icon indicating copy to clipboard operation
angular-loading-bar copied to clipboard

Use XMLHttpRequest event handlers to track actual progress of requests

Open NickAb opened this issue 9 years ago • 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.

NickAb avatar May 29 '16 03:05 NickAb

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

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+.

ryanvanderpol avatar Dec 09 '16 19:12 ryanvanderpol