Dear Corona community,
I use
network.request(remotePicController, “POST”, uploadListener, params)
to upload two b64 encoded images as a string in params.body. I also set params.progress = “upload” and listen for
elseif ( event.phase == “progress” ) then
print ("Download progress: " … event.bytesTransferred)
The size of my request is ~2MB, so depending on signal strength, it might take a couple of seconds to upload the images. I would like to create a progress bar (or just numbers at the beginning) to indicate how much has been transfered yet.
Unfortunately it prints out the progress only once before event.phase == “ended” is fired. I’d rather get the progress every miliseconds or so.
I did some research, but did not find out whether this behaviour is normal or not. Is there a way to get the progress constantly while uploading something?
Appreciate any help, thanks.
