Subhendu
Subhendu

Reputation: 11

How to get progress status for a video file upload in flutter

I need the video upload stream to show the upload progress status.

I have tried using Dio but here the video file size is getting increased also not playing after uploading.

await Dio().put(
          uploadURL,
          data: await videoFile!.readAsBytes(),
          onSendProgress: (int sent, int total) {
          print('$sent $total');
        },
    );

Can anyone please help me regarding this or any better option to get the upload stream?

Upvotes: 1

Views: 773

Answers (0)

Related Questions