Display load percentage through javascript just like bottom left chrome

Whenever you upload a file / files via chrome, it will show the percentage of download in the lower left corner of the page before applying 100% and redirecting.

Where does Chrome get this number and how can I display the value on the page via javascript / jQuery (in all browsers) before the page is redirected?

I searched around and I do not want to upload the file via AJAX, just use a regular form like ...

<form enctype="multipart/form-data" method="post" action="/submit">
    <input type="file" name="file" />
    <input type="submit" />
</form>
+4
source share
1 answer

, request.method.POST, .

0

Source: https://habr.com/ru/post/1538466/


All Articles