Axios onUploadProgress only fires once on my machine

后端 未结 2 1051
故里飘歌
故里飘歌 2021-01-18 03:52

If I use this fiddle https://jsfiddle.net/v70kou59/1/ everything works as expected

(function () {
    var output = document.getElementById(\'output\');
    d         


        
2条回答
  •  情深已故
    2021-01-18 04:43

    I've had exact issue. One of the reason(it was the case with me) could be, your network is too fast to trigger the progressEvent multiple times.

    To simulate this, slow down your network on Network tab of your Browser.

    Slow 3G setting worked for me on Google Chrome/New Edge(dev release) browser.

    Refer the image:

    PS: I know this is too late to answer this. But others might find it helpful when they land here.

提交回复
热议问题