Upload progress

What up everyone?!

Just curious, is there a way to know when a file is being uploaded via some sort of progress or do an event like show another button after upload is completed?

I’m using sample code from the site to get me going but cannot find a way to do the above.

New-UDUpload -Text 'Upload File' -OnUpload {
       $Data = $Body | ConvertFrom-Json 
       Show-UDToast "Uploading : $($Data.Name)"
       $Temp = 'C:\Temp'
       $bytes = [System.Convert]::FromBase64String($Data.Data)
       [System.IO.File]::WriteAllBytes("$Temp\$($Data.Name)", $bytes)
 }

Thanks

Product: PowerShell Universal
Version: 2.0.3