cordova-plugin-advanced-http icon indicating copy to clipboard operation
cordova-plugin-advanced-http copied to clipboard

Added progress callback for uploadFile

Open brunolau opened this issue 2 years ago • 3 comments

This adds onProgress callback for uploadFile method. Useful when uploading larger files

brunolau avatar Apr 06 '22 05:04 brunolau

Thank you for providing this feature PR, but please do not use Java 8 features as we are still supporting old Cordova projects running on Java 7.

silkimen avatar Sep 16 '22 02:09 silkimen

Hi, lambda has been removed

brunolau avatar Dec 20 '22 09:12 brunolau

Hi @brunolau, been quite some time but I checked your PR again just now. Left some comments. And also I recognized you could simplify the implementation by not checking if a progress function was supplied in native code, but instead always report the progress to the webview. And the www interface file can check if a progress callback was provided. I think this will be minimal overhead, right? What do you think?

silkimen avatar May 25 '23 16:05 silkimen