g. a large file upload), it&#39;s desirable to display a progress indicator to the user to signal that the application is still working.</p>
<p><code>m.request()</code> exposes its underlying <code>XMLHttpRequest</code> object via the <code>options.config</code> parameter, which allows you to attach event listeners to the XMLHttpRequest object:</p>
<pre><code class=language-javascript>var progress = 0

m.mount(document.body, {
    view: function() {
        return [
            m(&quot;input[type=file]&quot