I'm currently attempting to integrate plupload into a modal window that is generated by ng-dialog. Here is the code I am using:
$scope.showManager = function(){
ngDialog.open({
template: '/template/fmanager.html',
controller: 'FileManagerController'
});
}
app.controller('FileManagerController', function($scope){
$scope.plupload = new plupload.Uploader({
browse_button: 'browseFileButton',
url: '/upload/path',
init: {
FilesAdded: function(uploader, files) {
uploader.start();
}
}
});
$scope.plupload.init();
});
Unfortunately, I am running into an issue where the browse button does not seem to be working as expected. I have attempted to create an init function without success:
$scope.init = function(){
$scope.plupload.settings.browse_button = 'browseFileButton';
$scope.plupload.refresh();
$scope.plupload.init();
}
If anyone has any suggestions or solutions, please let me know. Thank you.