GUACAMOLE-44: ManagedFileUpload.getInstance() must not directly invoke $apply() - it can result in an infinite $digest loop.

This commit is contained in:
Michael Jumper
2016-06-02 17:11:38 -07:00
parent 274145abdc
commit 0d07c0fc8d

View File

@@ -139,7 +139,7 @@ angular.module('client').factory('ManagedFileUpload', ['$rootScope', '$injector'
stream = object.createOutputStream(file.type, streamName);
// Notify that the file transfer is pending
$rootScope.$apply(function uploadStreamOpen() {
$rootScope.$evalAsync(function uploadStreamOpen() {
// Init managed upload
managedFileUpload.filename = file.name;