Axios: onUploadProgress event gets only triggered after video is uploaded completely

I am trying to track the progress of video upload and accordingly display it to the user.
This is the axios request that uploads the video.

  const config = {
    onUploadProgress: function (progressEvent) {
      var percentCompleted = Math.round(
        (progressEvent.loaded * 100) / progressEvent.total
      );
      console.group("profileActions.uploadProfileVideoURL");
      console.log("progressEvent.loaded: ", progressEvent.loaded);
      console.log("progressEvent.total: ", progressEvent.total);
      console.log("percentCompleted: ", percentCompleted);
      console.groupEnd();
    },
  };

  axios
    .post("/api/profile/uploadProfileVideoURL", videoData, config)

The problem is that it only gets triggered when video is completely uploaded.
I have found this discussed in this Github Axios Issue:

Only 100% can be fired in case your upload files are too small, or
download/upload speed is too fast. Try to upload 10mb file maybe.

So I tried uploading a 100Mb video, and the event still gets triggered at then end of the upload.
Any idea why is this happening?
And can I fine-tune axios for the event to get triggered at certain progress values?

319 thoughts on “Axios: onUploadProgress event gets only triggered after video is uploaded completely”

  1. Greetings! Very useful advice in this particular post!

    It’s the little changes that will make the most significant changes.
    Thanks a lot for sharing!

    Reply
  2. What’s Going down i’m new to this, I stumbled upon this I have discovered It
    positively helpful and it has aided me out loads.
    I hope to give a contribution & assist other users like
    its helped me. Great job.

    Reply
  3. Thanks for any other informative web site. The place else
    could I am getting that kind of information written in such a perfect
    approach? I’ve a undertaking that I’m simply now running on, and I have been at the glance out for such information.

    Reply
  4. Have you ever considered about adding a little bit more than just your articles?

    I mean, what you say is valuable and everything.
    However think of if you added some great images or
    video clips to give your posts more, “pop”!

    Your content is excellent but with pics and clips, this website could certainly be one of the very best in its field.
    Amazing blog!

    Reply
  5. I’m not sure exactly why but this weblog is loading incredibly slow for me.
    Is anyone else having this problem or is it a problem on my end?

    I’ll check back later and see if the problem still exists.

    Reply
  6. I am no longer sure where you are getting your info, however great topic.
    I must spend a while finding out much more or understanding more.
    Thank you for excellent info I used to be in search of this
    info for my mission.

    Reply
  7. This design is steller! You most certainly know how to keep a reader entertained.
    Between your wit and your videos, I was almost moved
    to start my own blog (well, almost…HaHa!) Excellent job.
    I really loved what you had to say, and more than that, how you presented it.

    Too cool!

    Reply
  8. Heya i am for the first time here. I found this
    board and I find It truly helpful & it helped me out much.
    I hope to offer one thing again and aid others like you aided me.

    Reply
  9. A fascinating discussion is definitely worth comment. I do think that you should
    write more about this topic, it may not be a taboo matter but generally people
    do not talk about these issues. To the next! Many thanks!!

    Reply
  10. Have you ever thought about writing an e-book or guest authoring on other sites?
    I have a blog based on the same information you discuss and would really like to have you share some stories/information.
    I know my viewers would enjoy your work. If you’re
    even remotely interested, feel free to send me an e mail.

    Reply
  11. Howdy! This blog post could not be written much better!
    Looking at this post reminds me of my previous roommate!
    He constantly kept talking about this. I most certainly will forward this article to him.
    Pretty sure he’s going to have a very good read. Thank you for sharing!

    Reply
  12. Have you ever thought about adding a little bit more than just your articles?

    I mean, what you say is important and everything. However think about
    if you added some great photos or video clips to give your posts more, “pop”!
    Your content is excellent but with images and clips,
    this site could certainly be one of the best in its niche.
    Very good blog!

    Reply
  13. Good day! I know this is kinda off topic but I’d figured I’d ask.

    Would you be interested in trading links or maybe
    guest authoring a blog post or vice-versa? My site covers a lot of the same subjects as yours and I believe we
    could greatly benefit from each other. If you are interested feel free to send me an e-mail.
    I look forward to hearing from you! Fantastic blog by the
    way!

    Reply
  14. Does your website have a contact page? I’m having trouble locating it but, I’d like to
    shoot you an email. I’ve got some creative ideas for
    your blog you might be interested in hearing.
    Either way, great site and I look forward to seeing it
    expand over time.

    Reply
  15. Just want to say your article is as amazing.
    The clearness in your post is simply excellent and i could assume you’re an expert on this subject.

    Fine with your permission allow me to grab your feed to keep up to date with forthcoming post.
    Thanks a million and please keep up the rewarding work.

    Reply
  16. Hi there! This post could not be written any better!
    Reading this post reminds me of my old room mate! He always kept talking about
    this. I will forward this write-up to him. Pretty sure he will have a good
    read. Thank you for sharing!

    Reply
  17. Excellent beat ! I would like to apprentice at the same time
    as you amend your web site, how can i subscribe for a weblog web
    site? The account helped me a acceptable deal.
    I have been a little bit familiar of this your broadcast offered vibrant transparent idea

    Reply
  18. Hello! I could have sworn I’ve been to this site before but after checking
    through some of the post I realized it’s new to me.
    Anyhow, I’m definitely happy I found it and I’ll be bookmarking and checking back frequently!

    Reply
  19. I’d like to thank you for the efforts you have put in writing this site.
    I really hope to see the same high-grade blog posts by you in the
    future as well. In truth, your creative writing abilities has motivated me to get my own blog
    now 😉

    Reply
  20. Thanks for your marvelous posting! I truly enjoyed
    reading it, you can be a great author.I will be sure to bookmark
    your blog and definitely will come back sometime soon. I
    want to encourage continue your great work, have a nice weekend!

    Reply
  21. Hmm it appears like your website ate my first comment (it
    was super long) so I guess I’ll just sum it up what I
    wrote and say, I’m thoroughly enjoying your blog.
    I as well am an aspiring blog blogger but I’m still new to everything.

    Do you have any tips and hints for rookie blog writers?
    I’d genuinely appreciate it.

    Reply
  22. Thanks for some other wonderful article. Where else could anybody get that kind of info in such a perfect approach of writing?
    I have a presentation subsequent week, and I am on the look for such info.

    Reply
  23. I have been exploring for a little for any high quality articles or
    blog posts in this sort of house . Exploring in Yahoo I eventually stumbled upon this site.
    Studying this information So i’m happy to convey that I have a very good
    uncanny feeling I discovered exactly what I needed. I most undoubtedly will make certain to don?t omit this site and provides it a look regularly.

    Reply
  24. Have you ever thought about including a little bit more than just your articles?
    I mean, what you say is fundamental and everything. However think of
    if you added some great photos or videos to give your
    posts more, “pop”! Your content is excellent but with images and clips, this blog could definitely be one of the best
    in its field. Amazing blog!

    Reply
  25. Wonderful article! That is the type of information that are
    meant to be shared around the internet. Disgrace on the seek engines for no longer positioning this post upper!

    Come on over and talk over with my site . Thanks =)

    Reply
  26. Hmm it looks like your blog ate my first comment (it was
    super long) so I guess I’ll just sum it up what I wrote and say,
    I’m thoroughly enjoying your blog. I as well am an aspiring blog writer
    but I’m still new to everything. Do you have any points for first-time blog writers?
    I’d genuinely appreciate it.

    Reply
  27. Undeniably imagine that which you said. Your favorite reason appeared to be on the web the easiest thing to take into account of.

    I say to you, I certainly get irked while other folks think
    about worries that they plainly don’t realize about.
    You managed to hit the nail upon the top and also
    outlined out the entire thing with no need side-effects ,
    other folks could take a signal. Will likely be back to get more.
    Thanks

    Reply
  28. Hi there, i read your blog occasionally and i own a
    similar one and i was just wondering if you get a lot of spam responses?
    If so how do you protect against it, any plugin or anything you can advise?
    I get so much lately it’s driving me mad so any support is
    very much appreciated.

    Reply
  29. My partner and I absolutely love your blog and find most of your
    post’s to be exactly what I’m looking for. Do you
    offer guest writers to write content to suit your needs?
    I wouldn’t mind composing a post or elaborating on some of the subjects you
    write related to here. Again, awesome web site!

    Reply
  30. Its such as you read my thoughts! You appear to understand a lot about
    this, such as you wrote the ebook in it or something.
    I think that you simply can do with some % to pressure
    the message home a bit, however instead of that, this is excellent
    blog. A fantastic read. I will certainly be back.

    Reply
  31. Hi! I know this is kinda off topic however , I’d figured I’d ask.
    Would you be interested in exchanging links or maybe guest writing a blog article or vice-versa?
    My site addresses a lot of the same topics as yours
    and I think we could greatly benefit from each other. If
    you happen to be interested feel free to send me an email.
    I look forward to hearing from you! Awesome blog by the way!

    Reply
  32. I know this if off topic but I’m looking into starting my own weblog and was wondering what all is required to get set up?
    I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very web savvy so I’m not 100% certain. Any recommendations or advice would be greatly appreciated.
    Thanks

    Reply
  33. This design is wicked! You definitely know how to keep
    a reader amused. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Wonderful job.
    I really enjoyed what you had to say, and more than that, how you presented it.

    Too cool!

    Reply
  34. I am really impressed with your writing skills as well as with the layout on your weblog.
    Is this a paid theme or did you customize it yourself?
    Anyway keep up the excellent quality writing, it’s rare to see a nice blog like this one
    today.

    Reply
  35. My partner and I stumbled over here by a different page and thought I might as well check things out.
    I like what I see so i am just following you. Look forward to exploring your web page again.

    Reply
  36. Hi, I think your blog might be having browser compatibility issues.
    When I look at your website in Chrome, it looks fine but when opening in Internet
    Explorer, it has some overlapping. I just wanted to give you a quick heads up!
    Other then that, amazing blog!

    Reply
  37. This design is wicked! You definitely know how to keep a reader entertained.
    Between your wit and your videos, I was almost
    moved to start my own blog (well, almost…HaHa!) Fantastic job.

    I really enjoyed what you had to say, and more than that, how you presented it.
    Too cool!

    Reply
  38. whoah this blog is fantastic i really like studying
    your posts. Keep up the great work! You know, a lot of persons are searching round for this information, you
    can aid them greatly.

    Reply
  39. Hello there, There’s no doubt that your site could be having internet browser compatibility problems.
    When I take a look at your website in Safari, it looks fine however when opening in IE, it has some overlapping issues.

    I simply wanted to give you a quick heads up! Besides that, excellent site!

    Reply
  40. Do you have a spam issue on this site; I also am a blogger, and I was wondering your situation; many of us have developed some nice practices and we are looking to exchange solutions with others, please shoot me
    an email if interested.

    Reply
  41. Wonderful website you have here but I was
    curious about if you knew of any forums that cover the same topics discussed in this article?

    I’d really like to be a part of online community where I can get responses
    from other experienced people that share the same interest.
    If you have any suggestions, please let me know. Kudos!

    Reply
  42. Everything published made a bunch of sense. But, consider
    this, suppose you composed a catchier title? I ain’t suggesting your
    content is not solid, but what if you added something to possibly get people’s attention? I mean Axios:
    onUploadProgress event gets only triggered after video is
    uploaded completely – JavaScript Help is kinda plain. You should glance at Yahoo’s
    home page and watch how they create post headlines to get viewers to open the links.
    You might try adding a video or a related picture
    or two to grab people excited about everything’ve got to say.

    In my opinion, it might bring your blog a little bit more interesting.

    Reply
  43. Very nice post. I just stumbled upon your blog and wanted to say that I’ve really enjoyed
    browsing your blog posts. In any case I’ll be subscribing to your feed
    and I hope you write again very soon!

    Reply
  44. With havin so much content do you ever run into any issues of
    plagorism or copyright infringement? My site has a lot of completely unique content I’ve either authored myself or outsourced but
    it seems a lot of it is popping it up all over the web without my authorization. Do you know any
    methods to help stop content from being ripped off?
    I’d definitely appreciate it.

    Reply
  45. My developer is trying to convince me to move to .net from PHP.

    I have always disliked the idea because of the expenses. But
    he’s tryiong none the less. I’ve been using WordPress
    on a number of websites for about a year and
    am concerned about switching to another platform. I have heard very good things about blogengine.net.
    Is there a way I can transfer all my wordpress content
    into it? Any kind of help would be greatly appreciated!

    Reply
  46. Wonderful beat ! I wish to apprentice while you amend your site, how can i subscribe for a
    blog web site? The account aided me a acceptable deal.
    I had been a little bit acquainted of this your broadcast offered bright clear concept

    Reply
  47. Yesterday, while I was at work, my sister stole my iPad and tested to see if it can survive a 25 foot drop,
    just so she can be a youtube sensation. My apple
    ipad is now destroyed and she has 83 views. I know this is completely off topic
    but I had to share it with someone!

    Reply
  48. Hello there! This article couldn’t be written any better!
    Looking at this article reminds me of my previous roommate!
    He always kept talking about this. I most certainly will forward this information to
    him. Fairly certain he’ll have a good read. Thank you for sharing!

    Reply
  49. I’m truly enjoying the design and layout of
    your site. It’s a very easy on the eyes which makes it much more pleasant for me to come here and visit more often.
    Did you hire out a developer to create your theme? Superb work!

    Reply
  50. Hey I know this is off topic but I was wondering if you knew of any widgets I could
    add to my blog that automatically tweet my newest
    twitter updates. I’ve been looking for a plug-in like this
    for quite some time and was hoping maybe you would have some experience
    with something like this. Please let me know if you run into anything.

    I truly enjoy reading your blog and I look forward to your new updates.

    Reply
  51. Do you mind if I quote a few of your posts as long
    as I provide credit and sources back to your blog?
    My website is in the exact same area of interest as yours
    and my visitors would really benefit from a
    lot of the information you provide here. Please let me know if this okay with you.
    Appreciate it!

    Reply
  52. This is really interesting, You are a very skilled blogger.

    I have joined your rss feed and look forward to seeking more of your
    fantastic post. Also, I have shared your website in my
    social networks!

    Reply
  53. Write more, thats all I have to say. Literally, it seems as though you relied on the video
    to make your point. You obviously know what youre talking about, why throw away your intelligence on just posting videos to your site when you
    could be giving us something informative to read?

    Reply
  54. Thank you for some other informative blog. The place else could I get
    that type of information written in such a
    perfect way? I have a mission that I’m simply now operating on, and I’ve been on the glance out for such info.

    Reply
  55. With havin so much written content do you ever run into any issues of plagorism or copyright violation?
    My website has a lot of unique content I’ve either created myself or outsourced but it seems a lot of
    it is popping it up all over the internet without my permission. Do you know any techniques to help
    reduce content from being ripped off? I’d genuinely appreciate it.

    Reply
  56. Howdy! This blog post could not be written much better! Looking at this
    post reminds me of my previous roommate! He constantly kept preaching about this.
    I’ll send this post to him. Pretty sure he’s going to have a great read.
    Many thanks for sharing!

    Reply
  57. Greetings from Ohio! I’m bored to tears at work so I
    decided to browse your blog on my iphone during lunch break.

    I really like the information you provide here and can’t
    wait to take a look when I get home. I’m shocked at
    how fast your blog loaded on my cell phone .. I’m not even using WIFI, just 3G
    .. Anyways, wonderful site!

    Reply
  58. Its like you read my mind! You seem to know so much about this,
    like you wrote the book in it or something. I think that you
    can do with a few pics to drive the message home a little bit,
    but instead of that, this is excellent blog. A great read.
    I will certainly be back.

    Reply
  59. Greetings from Florida! I’m bored to death at work so I decided to browse your blog on my iphone during lunch break.
    I love the info you present here and can’t wait to take a look when I get home.

    I’m shocked at how fast your blog loaded on my mobile ..

    I’m not even using WIFI, just 3G .. Anyways, superb site!

    Reply
  60. Good post. I learn something totally new and
    challenging on sites I stumbleupon every day. It will
    always be exciting to read articles from other authors and practice a
    little something from other websites.

    Reply
  61. Wonderful goods from you, man. I have understand your stuff previous to and you are just extremely great.
    I actually like what you’ve acquired here, really like what you’re
    stating and the way in which you say it. You make it entertaining and you still care for to keep it sensible.
    I cant wait to read much more from you. This is actually a terrific website.

    Reply
  62. We’re a bunch of volunteers and opening a brand new scheme in our community.

    Your web site offered us with helpful info to work on. You have
    performed an impressive job and our entire group will probably be grateful to you.

    Reply
  63. Can I simply say what a comfort to uncover someone that really knows what they are discussing on the net.
    You certainly know how to bring a problem to light and
    make it important. More and more people ought to read this and understand this side of the story.
    I was surprised you are not more popular since you
    most certainly possess the gift.

    Reply

Leave a Comment