kkazuo / dart-azblob

ISC License
8 stars 6 forks source link

(Feature Request) Need an callback which gives the upload or download progress of a file #7

Open tejHackerDEV opened 2 years ago

tejHackerDEV commented 2 years ago

Hi @kkazuo thanks for the package, Can you provide an callback which will give the upload & download progress of a file. I tried converting the package to dio as dio by default have this feature. But from azure I got Authentication failed & some error about the produced digest. So it will helpful if you add this feature or else covert the rest-api calls to dio.

kkazuo commented 10 months ago

Thank you for sharing your idea. I think that the root cause are in Web/HTML 5 standards. Fetch API does not have a progress reports interface. Old XHR API does not have good compatibility on IE, Node, Native. So, I think there is some trade-off to get functionality and simplicity. I hope that Web/HTML 5 standards have revised spec for progress reports in near future. When that come, the problem fix with easy.