http icon indicating copy to clipboard operation
http copied to clipboard

Add support for getting the progress of a file upload / download

Open liranzairi opened this issue 4 years ago • 2 comments

Hi,

When a user uploads a file in my app, I want to show him a progress bar. I'm looking for a way to listen to the amount of bytes sent in MultipartRequest, but I think it's not supported. Apparently you can do this with dart:io (https://stackoverflow.com/questions/50455131/flutter-how-to-get-upload-download-progress-for-http-requests?rq=1, https://medium.com/flutter-community/how-to-show-download-progress-in-a-flutter-app-8810e294acbd).

Can you add a support for this? Thanks.

liranzairi avatar Aug 30 '20 14:08 liranzairi

also, if the same could be supported on web as well.

syedtalha avatar Sep 04 '20 07:09 syedtalha

Hi,

I've opened a PR to add a onSendProgress callback.

Any help in advancing it as much appreciated.

For example I have no idea how to write a meaningful test for this feature.

Thanks

tlueder avatar May 28 '21 08:05 tlueder