title: How can I get the onDownloadProgress percentage with axios get method?
body: <p>Here is my code :</p>
  <pre><code>React.useEffect(() =&gt; {
          axios
              .get('https://jsonplaceholder.typicode.com/photos', {
                  onDownloadProgress: (progressEvent) =&gt; {
                      let percentCompleted = Math.round(progressEvent.loaded * 100 / progressEvent.total);
                      console.log(progressEvent.lengthComputable);
                      console.log(percentCompleted);
                  }
              })
              .then((response) =&gt; {
                  console.log('response done');
              })
              .catch((error) =&gt; {
                  console.log(error.message);
              });
      }, []);
  </code></pre>
  <p>And this is the console.log :</p>
  <pre><code>false
  Infinity
  false
  Infinity
  response done
  </code></pre>
  <p>I get infinity while trying to get the get method progress event . How can I get the exact percentage for the axios get method ?</p>