PRDownloader icon indicating copy to clipboard operation
PRDownloader copied to clipboard

get downloaded size without start download file

Open pishguy opened this issue 6 years ago • 9 comments

is any solution to get downloaded size without start downloading file such percent and downloaded size?

pishguy avatar Nov 20 '17 06:11 pishguy

Yes, we can add this API in the new version very soon.

amitshekhariitbhu avatar Nov 20 '17 06:11 amitshekhariitbhu

Is this available yet? Been almost a year for this thread.

cerberusv2px avatar Sep 30 '18 12:09 cerberusv2px

Is this available yet? Been almost a year for this thread.

Yes, There is For file size you can get it on OnProgressListener under onProgress method You just have to call progess.totalBytes and for File downloaded you can get as progress.currentBytes

Zaraki596 avatar Aug 23 '19 08:08 Zaraki596

Not getting file size by calling progress.totalBytes inside OnProgressListener . It is returning -1 . What to do ?

sindhu-nir avatar Oct 01 '19 10:10 sindhu-nir

Not getting file size by calling progress.totalBytes inside OnProgressListener . It is returning -1 . What to do ?

I also facing the same issue.

kmgicrockon avatar Apr 20 '20 09:04 kmgicrockon

The same issue facing.

kartik1225 avatar May 08 '20 11:05 kartik1225

Same issue here. it is returning -1 for files greater than 1 MB

kayesn786 avatar Jun 28 '20 07:06 kayesn786

Same Issue. getting totalBytes as -1.

bilalhussainn avatar Jul 21 '20 18:07 bilalhussainn

Is there a solution?

liang926 avatar Dec 13 '22 02:12 liang926