How can I manually trigger file uploads within an action of an angular controller?
This is my controller
angular.module('angular-app', ['blueimp.fileupload'])
.controller('NewsController', function($scope, $http) {
......
$scope.SaveNews = function() {
var url = baseUrl + '/Post',
data = $scope.News;
$http({
url: url,
method: 'POST',
data: data
}).success(function(data) {
$scope.News = data.Data;
---> something.submit(); // <--- THIS IS THE FILES SUBMIT
}
}).error(function(data) {
ShowAlert(data.Success);
});
};
I cannot trigger anything, any idea?