Closed
Description
I have the angular-file-upload script and it's posting to my express app which is then saving the file, so the good news is that the script is working... However, for some reason the progress/success callbacks don't seem to be doing anything at all and my developer console just remains blank...?
$scope.onFileSelect = function ($files) {
var file = $files;
$scope.upload = $upload.upload({
url: '/upload',
data: {myObj: $scope.myModelObj},
file: file
}).progress(function (evt) {
console.log('percent: ' + parseInt(100.0 * evt.loaded / evt.total));
}).success(function(data, status, headers, config) {
console.log(data);
});
};
Metadata
Metadata
Assignees
Labels
No labels