GUACAMOLE-44: ManagedFileUpload.getInstance() must not directly invoke $apply() - it can result in an infinite $digest loop.
This commit is contained in:
1 parent
274145abdc
commit
0d07c0fc8d
1 file changed
+1
-1
@@ -139,7 +139,7 @@ angular.module('client').factory('ManagedFileUpload', ['$rootScope', '$injector'
|
|||||||
stream = object.createOutputStream(file.type, streamName);
|
stream = object.createOutputStream(file.type, streamName);
|
||||||
|
|
||||||
// Notify that the file transfer is pending
|
// Notify that the file transfer is pending
|
||||||
$rootScope.$apply(function uploadStreamOpen() {
|
$rootScope.$evalAsync(function uploadStreamOpen() {
|
||||||
|
|
||||||
// Init managed upload
|
// Init managed upload
|
||||||
managedFileUpload.filename = file.name;
|
managedFileUpload.filename = file.name;
|
||||||
|
|||||||
Reference in new issue
Block a user