You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to implement monitoring of file upload completion in a promise like fashion and i consider that we miss proper documentaton for a functional and an efficient way to implement this.
This would be helpful for projects where the file upload is implemented within a form, where file uploads are set to start in pause state and the submit button is mapped to a trigger of file upload start that should then wait for file upload completion before performing submission completion.
The documentation should consider to clarify possibilities for efficiently waiting on a single flow object and on multiple flow objects.
The text was updated successfully, but these errors were encountered:
@AidasK: Do you have by any chance any advice to implement this?
At the moment i'm evaluating that this could be only implemented by implementing a custom watch function with calls to the .progress() funcion to ensure the flow object / the multiple flow objects are in complete state.
$scope.interval=$interval(function(){for(keyin$scope.uploads){if($scope.uploads[key]&&$scope.uploads[key].isUploading&&$scope.uploads[key].isUploading()){return;}}$interval.cancel($scope.interval);// code to be executed when all the uploads have been completed},1000);
Since we are using promises, we should use them instead of the intervals. Can't we check if promise has resolved and check isUploading variable there? Using intervals or timeouts just shows that library is not flexible enough or it's used incorrectly.
I'm trying to implement monitoring of file upload completion in a promise like fashion and i consider that we miss proper documentaton for a functional and an efficient way to implement this.
This would be helpful for projects where the file upload is implemented within a form, where file uploads are set to start in pause state and the submit button is mapped to a trigger of file upload start that should then wait for file upload completion before performing submission completion.
The documentation should consider to clarify possibilities for efficiently waiting on a single flow object and on multiple flow objects.
The text was updated successfully, but these errors were encountered: