LiveView - Knowing when file uploads are in progress

Currently LiveView only triggers the form submit event once all files have been uploaded, but is there a way to know when the first upload actually started, either on the client or the server? This is useful to hide certain elements on the page to prevent users from navigating away and such.

I’ve tried the global phx:page-loading-start but upload submits doesn’t seem to trigger this as well.

Thanks!

Check the:progress option. You can flip some assign based on the progress in your function.