onProgress event for UploadButton

It would be very useful to have an onProgress event implemented to the UploadButton that fires everytime an X amount of bytes are uploaded. With this event, it is possible to return the uploadedData which is the amount of bytes it has already uploaded. This will allow the creation of progress bars sot that the user can know how much has already been uploaded and maybe also how much time it will take.

Example:

export function uploadButton1_onProgress(uploadedData) {
fileSize = $w("#uploadButton1").value[0].size;
   $w("#progressBar").svg = "<svg><path stroke="rgb(200,200,200)" d="M0 10, 200 10"></path><path stroke="rgb(0,0,0)" d="M0 10, " + ((uploadedData / fileSize) * 200) + " 10"></svg>";
}

Please add this feature!

2 Likes

I love that idea, I hope they implement this