我是jQuery的新手,现在,我正在处理文件上传。我想在每次上传图片的时候添加一些进度条。我在jQuery中使用了uploadProgress,但它似乎不起作用。下面是我的代码:
var file_and_desc = new FormData($(this)[0]),inArray(get_ext[0].toLowerCase(), allow
它在工厂中工作,但控制器中的值不会更新。// all my data (including a base64 encoded image) to send to the server $scope.uploadProgress$watch($scope.uploadProgress, function() {
console.error("Inside controller: " + $scope.upload