Upload Progress Bar (native alternative to Fetch using XMLHttpRequest) – JavaScript Tutorial

preview_player
Показать описание

This tutorial shows you how you can use native JavaScript to monitor the progress of a file upload to a server and use this to update a progress bar element. The native solution is to use the XMLHttpRequest object to construct a HTTP request of type POST.
#javascript #nodejs #httprequest #tutorial #webdevelopment #xmlhttprequest #post #api #progressbar #vanillajs #vanillajavascript

⚡ NEW: Web development courses from Meta Inc. ⚡

Рекомендации по теме
Комментарии
Автор

Big thanks. Worked with my node.js project right away.

tomscall
Автор

I really appreciate the way you explaining things, thank you!

tomaszgasecki
Автор

Thanks for putting this together! I haven't seen any other resources for this.

captainrad
Автор

Nice and straigtforward tutorial! In the video, you mentioned a library for creating progress bar for fetch API upload, and I did not get it. Can you please let me know some of the libraries that canbe used to code progress bar for fetch upload.

judeleon
Автор

This could be done when obtaining data from the DB, monitoring approximately how long the request will take or it only works with files.

richardfigueroa
Автор

Very simple and clear example. Thank you for your beginner-friendly tutorial! '-']b

keedik
Автор

the progress bar doesn't show up with the exact same code

spencerian
Автор

This uses HMLHttpRequest API not the Fetch API, the title is misleading.

WebLego