how to get onUploadProgress in axios?
<p>I'm little bit confused that how to upload progress event with axios. Actually I am storing huge number files into aws s3. For that, how to get uploaded progress? I need this function <code>onUploadProgress</code></p>

<p>Currently my Post request is like this:</p>

<pre><code>export function uploadtoCdnAndSaveToDb(data) {
    return dispatch =&gt; {
        dispatch(showUnderLoader(true));
        return axios.post('/posttodb', {data:data},

        ).then((response) =&gt; {
            console.log(response.data)
        })
    }
}
</code></pre>