Answer the question
In order to leave comments, you need to log in
What is the error when initializing angularFileUpload?
Hello. I continue to learn angular. I can not deal with the file uploader to the server.
here is the input:
<input type="file" id="slider_photo" name="slider[photo]" required="required" class="form-control" nv-file-select="" uploader="uploader">
var adminControllers = angular.module('adminControllers',['angularFileUpload']);
adminControllers.controller('AddPageCtrl',['$scope', '$http', '$route', '$location', '$templateCache' , 'FileUploader',
function($scope, $http,$route,$location, $templateCache, FileUploader){
var uploader = $scope.uploader = new FileUploader({
url: 'upload.php'
});
}
]);
Answer the question
In order to leave comments, you need to log in
var uploader = $scope.uploader = new FileUploader({
url: 'upload.php'
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question